posted 12 years ago
I think what you actually are asking is how to cause the input focus to be set to the username textbox control.
You cannot do that using server-side code, because it's a client-side action.
However you can setup an onload javascript event handler on your web page (login form) that can execute JavaScript code that will give the focus to the username control.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.