註冊使用者控制項

來源:互聯網
上載者:User

“assembly” 是dll的名稱

“namespace” 是命名空間 

“tagprefix”在頁面裡的名字,比如頁面裡放一個 文字框,<asp:textbox … > 那麼這裡的asp 就是tagprefix 。

tagprefix="FCKeditorV2" 那麼就是 <FCKeditorV2:控制項的類名 >
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<%@ Register assembly="GMDatePicker" namespace="GrayMatterSoft" tagprefix="cc1" %>

建議在web.config 裡統一註冊,比如:

<system.web>

<pages>
<!--註冊自訂控制項-->
<controls>
<!--分頁控制項-->
<add assembly="Nature.WebControl.QuickPager" namespace="Nature.WebControls" tagPrefix="Nature"/>
<!--註冊基礎控制項,文字框、下拉式清單方塊等-->
<add assembly="Nature.WebControl.BaseControl" namespace="Nature.WebControls" tagPrefix="Nature"/>
<!--註冊中繼資料控制項-->
<add assembly="Nature.WebControl.MetaControl" namespace="Nature.WebControls" tagPrefix="Nature"/>
</controls>
</pages>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.