User control is an asp.net like page that works most like asp.net page and you can keep everything that you keep in your asp.net page. This is generally used to keep a portion of page that can be reused on different pages. For example, Header, Footer, Menus etc. You can keep menus in the user control and use it in all your content pages. User control helps you to reuse the stuffs.
To create a user control, right click the folder where you want to add user control and click on Add New Item ..., Select Web User Control from the template list and give proper name. Click Add. Keep something (asp.net controls, html controls etc.) there.
To use the user control, you need to add the Register Directives at the top of your content or master page like below
<%@ Register TagName="Footer" TagPrefix="Main" Src="~/Include/myuserControl.ascx" %>
and then you need to use the tag you mentioned in Register directives where you want your control to appear on the page.
<Main:Footer runat="server" id="f1" />
You are done!, hope this will help you.
Thank you for asking.Sheeba, if this helps please login to Mark As Answer. | Alert Moderator