referencing controls

F

Felipe Garcia

Does makes difference referencing controls inside EVERY page
<%@ Register TagPrefix="PC" Namespace="MyControls"
Assembly="Personal.MyControls" %>

or referencing controls ONCE inside web.config, making it work for every
page in the project ?
<pages>

<controls>

<add tagPrefix="PC" namespace="Personal.MyControls"/>

</controls>

</pages>


Is there any drawback ?


Thanks

Felipe Garcia
 
S

Scott Allen

This is 2.0 right? I plan on using the web.config setting, I can't
think of a drawback. It will be nice not to clutter up ASPX with @
Register declarations.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top