Click here to Skip to main content
15,442,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Tab container in my aspx page,in that i have some server controls eg textboxes,dropdownlist etc

I want to apply functionality that when page loads it will focus on first text box and on pressing it will move on to next control

i have set the TabIndex property but it is not working

<asp:TextBox ID="txtFName" runat="server" TabIndex="0" ></asp:TextBox>

on loading the focus doesnot appear on txtFname(and dont know where it is) and when i press Tab for first time focus moves to address bar

[edit]Code blocks sorted out - OriginalGriff[/edit]
Updated 22-Jun-11 2:25am

1 solution

Try this code on page load
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