多页面引用自定义控件注册
在多个页面使用自定义控件在每一个页均需要加入声明,有一个更好的替代方法是在web.config文件中声明自定义控件,在<system.web></system.web>配置节中加入
<pages>
<controls>
<add tagPrefix="cc" assembly="ControlLibrary" namespace="ControlLibrary"/>
</controls>
</pages>
在多个页面使用自定义控件在每一个页均需要加入声明,有一个更好的替代方法是在web.config文件中声明自定义控件,在<system.web></system.web>配置节中加入
<pages>
<controls>
<add tagPrefix="cc" assembly="ControlLibrary" namespace="ControlLibrary"/>
</controls>
</pages>