Copied to clipboard

Flag this post as spam?

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


  • Mark Olbert 87 posts 117 karma points
    Oct 27, 2009 @ 00:34
    Mark Olbert
    0

    Creating Custom Templates in Visual Studio

    I've been creating a number of custom templates in VS 2008 for situations where the page logic is pretty convoluted. That's working okay, but I've noticed a problem with the visual designer.

    Once I add, say, an <umbraco:Item> control to the template Visual Studio no longer "recognizes" when I add an ASPNET control to the page. Put another way, the Template.master.designer.cs file is not getting updated.

    I seem to recall there's a directive you can put at the top of the page file which tells Visual Studio to recognize the 'umbraco' tag...but I'm not sure what it is.

    - Mark

  • Aaron Powell 1708 posts 3044 karma points c-trib
    Oct 27, 2009 @ 12:15
    Aaron Powell
    1

    when you're using the Umbraco web.config it registers the Umbraco controls in the web.config, within the <pages /> node.

    Make sure you have that set correctly.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies