Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Labecca Schott 1 post 71 karma points
    Jan 25, 2024 @ 20:01
    Labecca Schott
    0

    can anyone help me with what is wrong with this code, I keep getting this error and can't get it fixed.

    My Code: enter image description here

    enter image description here

  • Steve Morgan 1346 posts 4455 karma points c-trib
    Jan 31, 2024 @ 17:07
    Steve Morgan
    0

    Change that first line to

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.FindAProvider>
    

    There's no need for a "closing tag" here - what that is actually doing is setting the type

    Be aware - everything is case senstive. Check that the FindAProvider (your documenttype) alias. It might possibly be a variation on the above:

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.findaprovider>
    
Please Sign in or register to post replies

Write your reply to:

Draft