Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a default button
Message
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00706243
Message ID:
00706361
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform