【发布时间】:2011-05-04 21:23:26
【问题描述】:
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Always" >
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" Interval="300" ontick="Timer1_Tick"></asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Send" />
</ContentTemplate>
</asp:UpdatePanel>
问题是 TextBox1’s 光标没有闪烁,它是静态的,但您可以在其中写入。它给人的印象是它冻结了。为什么光标不闪烁?
【问题讨论】:
-
切换焦点可能会解决此问题。您是否尝试使用 JavaScript 到
TextBox1.blur()然后TextBox1.focus()? -
我会发布作为答案,虽然我不确定它是否是你要找的。span>
-
你试试看 - 你已经拥有了所有必要的代码。 ;-)
-
感谢这篇文章对我的帮助..!!
标签: asp.net ajax timer updatepanel