From NET 2.0 onwards, you can use
Page.SetFocus("SubmitButton")
or
SubmitButton.Focus()
to set the page focus to the Control with ID SubmitButton.
The first alternative may cause some problems if you are using MasterPages. Not sure why, but the 2nd method has no problems with MasterPages.
Monday, July 27, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment