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.
Showing posts with label set focus. Show all posts
Showing posts with label set focus. Show all posts
Monday, July 27, 2009
Subscribe to:
Posts (Atom)