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

Forums / General Discussions / Add user control in master file

Add user control in master file

2 posts, 0 answered
  1. Pik Lee
    Pik Lee avatar
    142 posts
    Registered:
    13 Aug 2012
    19 Feb 2010
    Link to this post

    In asp.net c#, you can add a user control to a page like follow:
    <%

    @ Register TagPrefix="ATag" TagName="ATagName" Src="~/Controls/TestControl.ascx" %>

     <ATag:ATagName id="A" runat="server" />

    Can anyone tell me how do I do that in the master file?

    Thanks,
    Pik

     

  2. Pik Lee
    Pik Lee avatar
    142 posts
    Registered:
    13 Aug 2012
    19 Feb 2010
    Link to this post
    I've figured it put. Thanks. Pik
2 posts, 0 answered