How to specify the Tab index for Asp.Net control?

 Posted by vishalneeraj-24503 on 5/5/2014 | Category: ASP.NET Interview questions | Views: 846 | Points: 40
Answer:

Every controls have TabIndex property,through which we can set controls tab order i.e. when we press Tab button from keyboard,then we can navigate from one control to another control.

For Example:-
<asp:TextBox ID="TextBox1" runat="server" TabIndex="0"></asp:TextBox>

<asp:TextBox ID="TextBox2" runat="server" TabIndex="1"></asp:TextBox>
<asp:Button ID="Button3" runat="server" Text="Button" TabIndex="2" />


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response