Tuesday, October 25, 2005

Specifying the tab order in ASP.NET controls

In the body tag write this code to set the focus on the first controlonload="javascript:document.Form1.TextBox1.focus();
Every control has a property, TAB INDEXstart numbering the tab index of the controls starting from 1The controls that you do not intend to specify tab order, assign them -1 tab indexNote: if 0 'zero' is assigned to the controls then the tab order is in the order the controls were added to the form

0 Comments:

Post a Comment

<< Home