日期:2010-09-26  浏览次数:20382 次

  今天在网上看到ASP.Net 2.0中注册自定义控件的好方法,记录如下。
  在web.config 文件中全局注册自定义控件

<system.web>
      <pages>
        <controls>
          <add tagPrefix="rx" assembly="HYLQ.Component" namespace="HYLQ.Component"/>
         
        </controls>
       
      </pages>