Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set Tab Order on WebForms
Message
De
06/06/2005 13:51:40
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Divers
Thread ID:
01020349
Message ID:
01020597
Vues:
19
>1. The generated HTML gets nasty-looking - control tags run on one after another without line breaks etc. Are there any global settings that control that kind of thing?
>
>Unfortunately not - in order to generate "pretty" html you have to hand code it yourself.

Too bad. I thought someone might have come up with a "beautify" utility for this.

>
>2. The tab order depends (by default) on the control order in the HTML. Is there any way to get VS to do the grunt work of moving controls around in the HTML so the tab order is what I want?
>
>There is a property on the controls called TabIndex whick you can set to set the tab order.

The help for WebControl.TabIndex says "This property is supported only in Internet Explorer 4 and later." As a user primarily of FireFox I'd not be completely happy using this.

>
>
>3. Is there any way to set the "focus" on a form to a given control, rather than the browser's address bar?
>
>This is another one of those unfortunate situation which requires a little bit of javascript - if you google "asp.net set focus" you find quite a few .NET sites that will explain how you can easily accomplish this... Not only that you can also choose which one fits your situation.
>
>Hope this helps!


OK, I'll take a look at it. Thanks!
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform