Hi I registerd user control in pagelayout and trying use that but it seem like it not rendering any thoughts

%@ Register TagPrefix="sd" TagName="adbanner" Src="~/wpresources/usercontrols/AdBanner.ascx"%>

and i am using as

<sd:adbanner ID="adbanner" runnat="server" />

when i see in developer tools the above is displaying same its not rendring with actual user control

2 Answers 2


Is the runnatattribute in your question a typo? If not then that could be the cause it should be runat

  • Put the user control into a subdirectory of {SharePointRoot}/Templates/ControlTemplates

  • Register the control element at the top of page layout with Full Assembly name

  • You need to add configuration to the web.config file so that your pages are allowed to use the user controls. You have to enable it within the web.config

  • thanks Falak but there are controls which are rendering but except this one, i created new user control and trying to use
    – raky
    Oct 4, 2013 at 18:25
  • check my updated reponse! Oct 4, 2013 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.