referencing controls

  • Thread starter Thread starter Felipe Garcia
  • Start date Start date
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
 
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.
 
Back
Top