J
JeremyHolt
I am using a master page with an ImageButton. When I drop the Login control
in the <asp:content /> part of a new page, the LoginButton no longer receives
the focus when the user tabs out of the text boxes.
I've tried:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Me.Page.Form.DefaultButton = Me.Login1.FindControl("LoginButton").UniqueID
End Sub
but this only sets the focus on postback, not when the users tabs out of the
text box.
If I remove the ImageButton from the MasterPage, the loginButton receives
the focus correctly.
This is extremely irritating, because when the user presses the Enter key
after typing their password, they return to the login.aspx and the text boxes
are cleared.
Any suggestions please?
Thanks
Jeremy
in the <asp:content /> part of a new page, the LoginButton no longer receives
the focus when the user tabs out of the text boxes.
I've tried:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Me.Page.Form.DefaultButton = Me.Login1.FindControl("LoginButton").UniqueID
End Sub
but this only sets the focus on postback, not when the users tabs out of the
text box.
If I remove the ImageButton from the MasterPage, the loginButton receives
the focus correctly.
This is extremely irritating, because when the user presses the Enter key
after typing their password, they return to the login.aspx and the text boxes
are cleared.
Any suggestions please?
Thanks
Jeremy