In ASP.NET 1.x controls had to be registered in each page they were used. New since ASP.NET 2.0, controls can be registered in the web.config file. Visual Studio 2005 supports full intellisense when editing .aspx pages. This feature allows commonly used controls to be more easily used through out your application.
<system.web> <pages> <controls> <add tagPrefix="mycontrol" src="~/Controls/Header.ascx" tagName="header"/> <add tagPrefix="mycontrol" src="~/Controls/Footer.ascx" tagName="footer"/> </controls> </pages> </system.web>
Use the control in an .aspx page
<mycontrol:header id="Header" runat="server" />
- 01 Jul 2020
- 06 Apr 2020
- 11 Mar 2020
- 15 Feb 2020
- 02 Jan 2020
Recent on Build5Nines.com
This site is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. We also participates in affiliate programs with Udemy, and other sites. This site is compensated for referring traffic and business to these companies.