Click here to Skip to main content
15,937,006 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I have three text boxes on my web page. If user enter 4 chars in first textbox it should change focus to second text box. I have done using script but I need on codebehind (serverside). I have searched but did not get anything.

Please help me on this.

Thanks
Naveen
Posted
Comments
Sergey Alexandrovich Kryukov 29-May-13 2:34am    
This is because the server side does not really control the focus...
—SA
NaVeN Kumar 29-May-13 3:16am    
Thank you sergey for the info...

1 solution

Please see my comment to the question. Let me continue:

…However, you can return the HTML with JavaScript from you HTTP request; and this JavaScript can call some element's function focus():
http://www.w3schools.com/jsref/met_html_focus.asp[^].

—SA
 
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