ASPX templates
Version 5.x > ASPX templates > User control on Masterpage View modes: 
User avatar
Member
Member
uiterwijkjorik-gmail - 8/23/2011 5:25:53 AM
   
User control on Masterpage
Hi,

I want to add a selfmade usercontrol to an existing masterpage. I tried this with:
<%@ Register TagPrefix="uc1" TagName="Footer" Src="~/CMSUserControls/Footer.ascx" %>

and then add the usercontrol tot the form:
<uc1:Footer runat="server" />

But i got an 'Error Rendering Control'...

Anyone knows how to add an user control the a masterpage?

Thanks.

User avatar
Member
Member
kentico_michal - 8/23/2011 6:59:23 AM
   
RE:User control on Masterpage
Hello,

There should not be any limitation on adding custom user controls on the master page.

Could you please make sure that the user control works correctly outside of Kentico CMS?

What error message do you receive?

Are there any logs related this issue in the Event log (Site manager -> Administration -> Event log)?

Best regards,
Michal Legen

User avatar
Member
Member
uiterwijkjorik-gmail - 8/23/2011 10:20:11 AM
   
RE:User control on Masterpage
I already solved the problem...
Sorry was not specific Kentico but asp.net mistake..

Thanks anyway