Web.Config注册自定义或者用户控件

作者:分开不是尽头 | 创建时间: 2023-08-06
对不太熟悉使用注册用户控件和自定义控件的,又不想每个页面都写注册方法,可以在Web.Config中统一解决...
Web.Config注册自定义或者用户控件

操作方法

1:自定义控件

<controls>        <add   tagPrefix="海创科技" assembly="TableEditor" namespace="TableEditor"/>      </controls>

2:用户控件

<controls> <add tagPrefix=" "    src=" "     tagname="  "/> </controls>

温馨提示

自定义控件和用户控件注册方式不同
点击展开全文

更多推荐