Disabling the return key while within a dialog box

  • Thread starter Thread starter King Coffee
  • Start date Start date
K

King Coffee

Hi,

I have an asp:hyerLink control followed by an asp:Login control. If I
inadvertently press the return key while within the login control... the
asp.net page will perform the hyperlink and branch out of the login control
dialog box. So, How can I disable the return key within the login box, or
any other remedy?

King
 
PS: I also have button on the master.page with a similar page call like the
asp:HyperLink.

King
 
Hello King,

What's you DefaultButton settings for login contol?! Seems that you have
this attribute set and that's why enter submit your form

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour
:: http://twitter.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


KC> PS: I also have button on the master.page with a similar page call
KC> like the asp:HyperLink.
KC>
KC> King
KC>
KC> KC>
 
Thank You, your comment helped a lot. I change the button on the master.page
to "usesubmitbehavoir" to false... and it stop executing that button when I
press the enter key.

Once again, Thanks,
King

Michael Nemtsev said:
Hello King,

What's you DefaultButton settings for login contol?! Seems that you have
this attribute set and that's why enter submit your form

---
WBR, Michael Nemtsev [Microsoft MVP] :: blog:
http://spaces.live.com/laflour :: http://twitter.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

KC> PS: I also have button on the master.page with a similar page call
KC> like the asp:HyperLink.
KC> KC> King
KC> KC>
 
Back
Top