Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set focus to username and map enter key to login on ASP.Net WebForm Login Control
AppLogin.Focus();
this.Form.DefaultButton = "ctl00$BodyPlaceHolder$AppLogin$LoginButton";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment