SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

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" %>
share|improve this answer
thank you very much! – Shkipper Jul 18 '12 at 11:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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