ASP.NET TabIndex Attribute

Definition and Usage

The TabIndex attribute is used to set or return the tab key control order of the control.

Syntax

<asp:webcontrol id="id" TabIndex="number" runat="server" />
Value Description
number Specify the tab key control order of the control.

Example

This example sets the tab key control order of the button control:

<form runat="server">
<asp:CheckBox id="check1" TabIndex="1" runat="server" />
</form>

Example

Add the TabIndex attribute to set the tab order of the button control