How do you set the focus to a text box in ASP .NET? ASP Text boxes don't have a focus or setfocus method.
Printable View
How do you set the focus to a text box in ASP .NET? ASP Text boxes don't have a focus or setfocus method.
Javascript has a "focus" function call :)
Something likeCode:document.getElementById('txtUsername').focus();
Spot on.