Regarding my question, I have an OOTB control called ProjectProperty, which i can call in sharepoint like that:

<SharePoint:ProjectProperty Property="Title" runat="server" />

I want to extend this control. So i created a class which derives from this control:

 public class SiteProperty : ProjectProperty

And i added some functionality in this class.

My question now is, how can I use this extended customcontrol in the MasterPage. Where or how do I say that ok this is CustomControl and it should be used?

1 Answer 1


Register your solution/project assembly in the masterpage and/or pagelayouts like so:

<%@ Register TagPrefix="<Prefix>" Namespace="<NameSpace>" Assembly="<Assembly>" %>


<%@ Register TagPrefix="DandroidControl" Namespace="Dandroid.SharePoint.Controls" Assembly="Dandroid.SharePoint, Version=, Culture=neutral, PublicKeyToken=31ffcf8d61f9c2fb" %>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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