public void SetInputFocus() { TextBox tbox = this.loginForm.FindControl("UserName") as TextBox; if (tbox != null) { ScriptManager.GetCurrent(this.Page).SetFocus(tbox); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)