好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

ASP.NET 页面中加添加用户控件的写法

一:在页面前台中添加注册控件

复制代码 代码如下:


<%@ Register Src="~/Controls/IndexTop.ascx" TagName="IndexTop" TagPrefix="uc_top" %>


二:在页面需要添加控件的地方添加控件内容

复制代码 代码如下:


<uc_top:IndexTop ID="IndexTop1" runat="server" />


三:新建用户控件IndexTop.ascx

查看更多关于ASP.NET 页面中加添加用户控件的写法的详细内容...

  阅读:38次