Search code examples
asp.net.nettextboxkeypress

textbox - KeyPress event on Asp.net [no javascript]


I'm designing a website and I want my login page to catch "Enter" with all components, but i can not assign any Key or Mouse Events to TextBox ... After pressing to "Enter" a function should be run with 2 parameters (user name and password).

How can i do this?


Solution

  • http://www.beansoftware.com/asp.net-tutorials/accept-enter-key.aspx

    finally if found the answer. Here is ! The only problem is, I can not hide my button, so that i put that button to web page as "Login" ... Defaultbutton could be hidden or not?