Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My project contains one ajax tab container with several tabs. Each tab contains different controls. I want to focus a textbox after the textchange event in the previous textbox. but when postback after data entering in the previous textbox the second textbox didnt focus, but the current tab get focused... pls help me to solve this..
Posted

1 solution

Added the below code at end of the onchange event.
JavaScript
ScriptManager.RegisterStartupScript(Page, Page.GetType, "ChangeEvent", "$('#textboxID').focus()", True)
 
Share this answer
 
Comments
shinju atholi 6-Aug-13 7:12am    
sry itz not working

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