Monday, March 26, 2012

Set Focus

How do you set the focus to a text box in ASP .NET? ASP Text boxes don't have a focus or setfocus method.Spot on.
Javascript has a "focus" function call :)

Something likedocument.getElementById('txtUsername').focus();

0 comments:

Post a Comment