<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
光標不閃爍它是靜態的,但你可以寫在它。它給人的印象是凍結。爲什麼光標不閃爍?的UpdatePanel,定時器和TexBox問題
切換焦點可能會解決這個問題。您是否嘗試將JavaScript用於「TextBox1.blur()」和「TextBox1.focus()」? – 2011-05-04 21:25:20
我會以答案的形式發佈,但我不確定它是否是您要找的。 – 2011-05-04 22:13:52
你試試吧 - 你已經有了所有必要的代碼。 ;-) – 2011-05-04 22:20:16