Click here to Skip to main content
15,608,989 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've a TabContainer with 2 TabPanels. Tried using the following codes to set the cursor at the textbox called TXTNAME in the 1st tabPanel, but it doesn't work.

Page.ClientScript.RegisterStartupScript(Page.GetType, "SetFocus", "document.getElementById('" & txtName.ClientID & "').focus();", True)
Updated 28-Sep-12 0:03am
Abhijit Parab 28-Sep-12 5:54am    
please give more details

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