Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Saturday, December 29, 2007

Web User Control shortcut

I just discovered a Web User Control shortcut for using your controls in apsx pages.
As per the reference link's example, add your implementation of this example:


<add tagPrefix="scottgu" src="~/Controls/Footer.ascx" tagName="footer"/>
<add tagPrefix="ControlVendor" assembly="ControlVendorAssembly"/>
All in the Web.config file in the elements.

Then you can reference it in aspx as

Reference: Link

No comments: