views:

230

answers:

3

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?

+4  A: 

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.

Adam Lassek
+3  A: 

Web controls have a TabIndex property that you can set.

nportelli
+1  A: 

I used this nifty piece of code to automatically tab order my forms. Worked pretty well.

itsmatt
OP was asking about WebForms, not WinForms.
Adam Lassek
It's still cool, however.
George Stocker