[quote user="djork"]
The enter key doesn't work in this situation. Period. It's not going to work. You can't make it work with the ASP:Login control without dozens of lines of flaky Javascript. Your boss is clamoring for the enter key to work. You're scouring the 'net to find a solution. The only solution? Ditch the ASP:Login control and implement it by hand, which you were trying to avoid in the first place. [b]So what is the purpose of this control's existance?[/b] To drive developers out of their damned minds.
[/quote]
Had this problem a while back - was baffled and frustrated by it for the longest time. In ASP.NET 2.0 the fix is easy - just set a "defaultbutton" attribute on the form tag, specifying the button that should fire it's click event when the user presses enter. Something like <form id="mainform" defaultbutton="btnLogin"....