Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a default button
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00706243
Message ID:
00706361
Vues:
21
Joe - this was in response to another thread - sorry for the misplaced response.

Joe,

I just use Javascript in the Body Tag with OnLoad loaded with where I want to go. Be aware that if you set your focus to a control that is not enabled you'll have trouble. Here is how I handle it (but I'm always open to new ideas).

OnLoad="if(document.forms[0].elements[0].isDisabled)document.forms[0].elements[1].focus(); else document.forms[0].elements[0].focus();"

Plus you can add all kinds of JavaScript by adding it during processing. Look up 'Client-Side functionality in a Server Control' in the .NET help and check out Page.RegisterClientScriptBlock();

HTH,
Doug
Douglas Osborne
Don't spend your life just wishing - http://www.AllGiftRegistry.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform