同一页面有两个UpdatePanel
第一个是UpdatePanel4用来局部切换图片
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" Interval="2000" OnTick="Timer1_Tick">
</asp:Timer>
<a href="photo_add.aspx"><asp:Image ID="Image1" runat="server" ImageUrl="~/images/image/1.jpg" CssClass="image11" /></a>
</ContentTemplate>
</asp:UpdatePanel>第二个是UpdatePanel1用来局部刷新RadioButtonList
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<p></p><br />
<h3>用户登陆</h3>
<table><tr><td>用户名:</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" BorderWidth="1px" Height="20px"
Width="126px"></asp:TextBox></td></tr>
<tr>
<td>密 码:</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Height="20px"
TextMode="Password" Width="126px" BorderWidth="1px"></asp:TextBox></td></tr></table>
<table><tr>
<td>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem>教师</asp:ListItem>
<asp:ListItem Selected="True">学生</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr></table>
</ContentTemplate>
</asp:UpdatePanel>
问题:UpdatePanel4没2秒刷新一次,而UpdatePanel1都会跟着刷新,从而导致UpdatePanel1中的密码输入输入不了,因为每次刷新密码的TextBox都会清空请问如何解决这个问题。。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货