How to work with ASP.NET web user control.(Could you provide steps with example) [Resolved]

Posted by Joewilliam under Regular Expressions on 6/22/2011 | Points: 10 | Views : 4424 | Status : [Member] | Replies : 3
How to work with ASP.NET web user control.(Could you provide steps with example)

William Mary


Responses

Posted by: SheoNarayan on: 6/22/2011 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
Hello William,

Steps:
1. Create user control (.ascx) put some data
2. Register into the .aspx or .master page
3. User it using the TagPrefix and TagName on .aspx or .master page wherever required.

Read this article this should help you to learn this in detail http://www.dotnetfunda.com/articles/article97.aspx.

Hope this would be helpful.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Joewilliam, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Joewilliam on: 6/22/2011 [Member] Starter | Points: 25

Up
0
Down
I got the answer.

William Mary

Joewilliam, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Joewilliam on: 6/22/2011 [Member] Starter | Points: 25

Up
0
Down
Thanks i added web user control.

<%@ Register TagPrefix="uc" TagName="editbook" Src="~/Controls/Editbook.ascx" %>
<uc:editbook ID="editbook1" runat="server" />
<asp:Repeater ID="BookEditListCtl" runat="server"></asp:Repeater>

William Mary

Joewilliam, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response