1.在本页面上注册 <%@ Register src="Controls/GoHome.ascx" tagname="GoHome" tagprefix="ucGH" %>
使用时: <ucGH:GoHome ID="GoHome1" runat="server" />
2.记录在web.config文件中,记录在以下节点中: configuration/system.web/pages/controls
语句为:<add src="~/Controls/GoHome.ascx" tagName="GoHome" tagPrefix="ucGH"/>
使用时: <ucGH:GoHome ID="GoHome1" runat="server" />