Set Focus ASP.NET Web Forms Control Using Page Setfocus() Method
Hello,
Most of the time, i usually have a JavaScript function to set focus a control during pageload. The control.focus() most of the time does not work in my asp.net page. But in an ASP.NET Page control, there is a handy method to focus.
where Control could be a textbox or button.
Most of the time, i usually have a JavaScript function to set focus a control during pageload. The control.focus() most of the time does not work in my asp.net page. But in an ASP.NET Page control, there is a handy method to focus.
Page.Setfocus(Control.ClientID);
Comments
Post a Comment