关于ASP.NET用户控件问题 在调用页面无法正常显示
用户控件代码<div><h2>登录界面</h2><asp:LabelID="lbl_us"runat="server"Visible="false"></asp:Labe...
用户控件代码<div>
<h2>登录界面</h2>
<asp:Label ID = "lbl_us" runat = "server" Visible = "false"></asp:Label><br />
用 户 名<asp:TextBox ID="tbx_user" runat="server"></asp:TextBox><br />
登录密码<asp:TextBox ID="tbx_pwd" runat="server"></asp:TextBox><br />
<asp:Button ID="Button1" runat="server" Text="登录" onclick="Button1_Click" />
<asp:hyperlink ID = "lnk1" runat = "server" Text = "还没注册?"></asp:hyperlink>
</div>
引用代码<%@ Register TagPrefix = "smalp" TagName = "login" Src = "~/liong.ascx" %>
调用<div>
<smalp:login runat="server" id="Login1"></smalp:login>
</div> 展开
<h2>登录界面</h2>
<asp:Label ID = "lbl_us" runat = "server" Visible = "false"></asp:Label><br />
用 户 名<asp:TextBox ID="tbx_user" runat="server"></asp:TextBox><br />
登录密码<asp:TextBox ID="tbx_pwd" runat="server"></asp:TextBox><br />
<asp:Button ID="Button1" runat="server" Text="登录" onclick="Button1_Click" />
<asp:hyperlink ID = "lnk1" runat = "server" Text = "还没注册?"></asp:hyperlink>
</div>
引用代码<%@ Register TagPrefix = "smalp" TagName = "login" Src = "~/liong.ascx" %>
调用<div>
<smalp:login runat="server" id="Login1"></smalp:login>
</div> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询