In ASP I was able to control the tab order of fields on the screen simply by positioning the fields where I wanted them in the HTML table. In .NET, the HTML is generated and I have no control over where the fields are located. How do I control tab order in .NET (hopefully without having to hard code the field names)? Thanks for your help.
The proper way of controlling tab ordering in HTML in general is through the use of the HTML tabindex attribute. All WebControl-inherited classes (so all built-in ASP.NET Server Controls) implement a TabIndex property you can use for that purpose. For HTML controls you can just add the attribute to the element declaration.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Dig Deeper on Win Development Resources
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ...continue reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers.continue reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.