Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have two textbox under an update panel that is refresh periodically. When it refresh I lost cursor from the textbox I was typing. How to get the cursor on the textbox i was typing after refresh it.
ASP.NET
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>

         <asp:Timer ID="updateTimer" runat="server" Interval="5000" OnTick="updater_Tick">
         </asp:Timer>
         <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

         <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>

     </ContentTemplate>
 </asp:UpdatePanel>
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900