Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

Web controls have a TabIndex property that you can set.

When using the TabIndex values, name them as 5,10,15,20 and so on rather than 1,2,3,4 so if you want to insert a control in between later or even move it, you would not need to renumber the TabIndex property on all the controls.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top