Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tabbing behavior in WebForms

In WinForms, I can design a form and have a TabValue to control which control is selected each time the user hits 'Tab'. My question, in a Webform, is there a mechanism for doing the same thing?

Edit: Does the same apply to an Ajax heavy application?

like image 813
George Stocker Avatar asked Oct 24 '08 18:10

George Stocker


People also ask

What is tab order?

Tab Order is the order or sequence that the cursor moves from field to field. Initially, the tab order is determined by the order in which the fields are added to the form. In many cases, as fields are moved around the page, added from a template, or pasted from somewhere else, the tab sequence may become disorganized.

How to set tab order in Windows Forms in vb net?

Tab order can be set in the Properties window of the designer using the TabIndex property. The TabIndex property of a control determines where it's positioned in the tab order. By default, the first control added to the designer has a TabIndex value of 0, the second has a TabIndex of 1, and so on.

How to set tab order in Visual Studio?

To set the tab order, you simply select all three textboxes, then select Tab Order from the View menu. Then just click the controls in the order you want the tabs to sit. As you click each control, the tab order will be displayed on the control to keep you up to date.


2 Answers

You can set this with the TabIndex property on the ASP controls. If you want to do this on something that isn't an ASP control, you could also try something like the jQuery tabIndex plugin.

like image 72
Adam Lassek Avatar answered Sep 20 '22 02:09

Adam Lassek


Web controls have a TabIndex property that you can set.

like image 28
nportelli Avatar answered Sep 23 '22 02:09

nportelli