System.Web.UI.WebControls.WebControl.TabIndex Property

Gets or sets the tab index of the Web server control.

Syntax

[System.ComponentModel.DefaultValue(0)]
public virtual short TabIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the WebControl.TabIndex property to specify or determine the tab index of a Web server control on the Web Forms page. When you press the Tab key, the order in which the Web server controls receive focus is determined by the WebControl.TabIndex property of each control. When a page is initially loaded, the first item that receives focus when the Tab key is pressed is the address bar. Next, the controls on the Web Forms page are tabbed to in ascending order, based on the value of the WebControl.TabIndex property of each control, starting with the smallest positive, nonzero value. If multiple controls share the same tab index, the controls will receive focus in the order they are declared on the Web Forms page. Finally, controls that have a tab index of zero are tabbed to in the order they are declared.

Note:

Only controls with a nonzero tab index will render the tabindex attribute.

You can remove a Web Server control from the tab order by setting the WebControl.TabIndex property to a negative value.

Note:

This property is supported only in Internet Explorer 4 and later.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0