ASP.NET 的updatepanel问题
<asp:UpdatePanelID="UpdatePanel1"runat="server"><ContentTemplate><div><asp:ImageID="I...
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div>
<asp:Image ID="Image1" ImageUrl="~/Image/imagesFaces/default.gif" runat="server" />
<asp:Label ID="Label1" runat="server" Text="guest"></asp:Label>
<div>
<span>登陆</span>
</div>
</div> <%--用户信息显示--%>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button3" EventName="click" />
</Triggers>
</asp:UpdatePanel>
<div">
<br />
<span> 账号</span>
<span>
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="False"></asp:TextBox>
</span>
<br />
<br />
<span> 密码</span>
<span style=" width:100%;">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"
AutoPostBack="False"></asp:TextBox>
</span>
<span >
<asp:Button ID="Button3" runat="server" Text="确认"
onclick="Button3_Click" Width="100px" />
</span>
为什么这个button3只能第一次有效果???点完第一次就没效果了,我知道要重新注册一下,但是网上找了集中方法都没效果,希望大神解决下 展开
<ContentTemplate>
<div>
<asp:Image ID="Image1" ImageUrl="~/Image/imagesFaces/default.gif" runat="server" />
<asp:Label ID="Label1" runat="server" Text="guest"></asp:Label>
<div>
<span>登陆</span>
</div>
</div> <%--用户信息显示--%>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button3" EventName="click" />
</Triggers>
</asp:UpdatePanel>
<div">
<br />
<span> 账号</span>
<span>
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="False"></asp:TextBox>
</span>
<br />
<br />
<span> 密码</span>
<span style=" width:100%;">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"
AutoPostBack="False"></asp:TextBox>
</span>
<span >
<asp:Button ID="Button3" runat="server" Text="确认"
onclick="Button3_Click" Width="100px" />
</span>
为什么这个button3只能第一次有效果???点完第一次就没效果了,我知道要重新注册一下,但是网上找了集中方法都没效果,希望大神解决下 展开
1个回答
展开全部
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button3" EventName="click" />
</Triggers>去掉,然后将<div">
<br />
<span> 账号</span>
<span>
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="False"></asp:TextBox>
</span>
<br />
<br />
<span> 密码</span>
<span style=" width:100%;">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"
AutoPostBack="False"></asp:TextBox>
</span>
<span >
<asp:Button ID="Button3" runat="server" Text="确认"
onclick="Button3_Click" Width="100px" />
</span>放到你去掉的内容的地方
<asp:AsyncPostBackTrigger ControlID="Button3" EventName="click" />
</Triggers>去掉,然后将<div">
<br />
<span> 账号</span>
<span>
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="False"></asp:TextBox>
</span>
<br />
<br />
<span> 密码</span>
<span style=" width:100%;">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"
AutoPostBack="False"></asp:TextBox>
</span>
<span >
<asp:Button ID="Button3" runat="server" Text="确认"
onclick="Button3_Click" Width="100px" />
</span>放到你去掉的内容的地方
更多追问追答
追问
没有效果,放到里面也还是没反应
追答
不可能没反应
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询