1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Hardcode Generic Content Control in MasterPage

Hardcode Generic Content Control in MasterPage

2 posts, 0 answered
  1. Jon Yates
    Jon Yates avatar
    1 posts
    Registered:
    13 Aug 2008
    03 Feb 2010
    Link to this post
    Hello all,

    How do I hardcode in the Master Page (.master file) a Generic Content control? For example, an asp.net textbox would look like <asp:textbox....>. What is it for the Generic Content control?

    Thanks all.

    Jon
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    03 Feb 2010
    Link to this post
    Hello Jon Yates,

    You have to register the control in the master page

    Name: Telerik.Cms.Engine.WebControls.GenericContent
    Assembly: Telerik.Cms.Engine

    You can also register a global tagPrefix in your web.config which will allow you to declaretively use all controls from Telerik.Cms.Engine assembly.

    <pages>
        <controls>
            <add tagPrefix="cmsEngine" namespace="Telerik.Cms.Engine.WebControls" assembly="Telerik.Cms.Engine"/>


    Regards,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
2 posts, 0 answered