Skip navigation.

Code Blocks Inside Master Pages Cause TroubleAll recent postsToo Much To Do

List Control tagPrefixes In Web.config

In ASP.NET 1.x, whenever you developed a custom server control, you had to @ Register it on every page where it appeared. In 2.0 there’s a new configuration section in web.config, <controls>, where you can list all tagPrefixes for custom server and user controls. This way you don’t need to @ Register them.

MSDN also states, You can use the same tagPrefix value to map to multiple assemblies or namespaces. Nice!

Comments

Comment permalink 1 Karl |
Milan,

This is one of the most important tips (IMHO) I have read lately! This will save me so much time. Thanks for showing me the light!
Comment permalink 2 Ivan |
Have you succeded in using this teqnique with the new Web Application Project? We cannot get it to work..
Comment permalink 3 Milan Negovan |
Ivan: yes, I use this technique with WAP. It has worked so far. What problem are you experiencing?

Emails and Notifications

Would you like to be notified when somebody responds to this post?  Would you like to have these comments emailed to you?

TrackBacks

Sorry, TrackBacks are not allowed.

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):