ScriptManager.GetCurrent(this.Page).SetFocus(control);
...where "control" is the name of the control. Granted, this assumes an ASP.NET 3.5 application with a ScriptManager on the page. Done.
If ASP.NET, WCF, or Visual Studio has pissed me off, you're sure as hell going to hear about it here.
ScriptManager.GetCurrent(this.Page).SetFocus(control);
No comments:
Post a Comment