Last post Dec 23, 2009 05:29 AM by Shakib.Zabihian
Dec 22, 2009 02:38 PM|Shakib.Zabihian|LINK
I'm writing my first user control with asp.net. I want to define some properties in my user control that can be controlled with tags in markup. Something like this:
<uc1:MyControl Id="MyControl1" runat="server">
This is property's value.
<asp:Button ID="btnRedirect" runat="server" PostBackUrl="http://www.asp.net" Text="Click here to go to official asp.net website" />
Sorry if my question is a little awkward.
Dec 22, 2009 02:43 PM|XIII|LINK
you're looking for what's known as "templated user controls". Take a look here on how to create one:
Dec 23, 2009 05:29 AM|Shakib.Zabihian|LINK
Thank you. It really helped me.