detect enter key press in asp.net
Hi, I have a login form on my site that will only log in the user if they click the Submit button. If the user presses enter it just reloads the page and clears the password field. If the text has not changed when Enter is pressed, a postback still occurs, but the TextChanged event does not. Im wondering if it is possible to determine that Enter was pressed in a textbox and caused the postback, ie. is there something like the following? protected void PageLoad(object sender Enter key in web page Hi, Im working in ASP .NET, it consists of few text boxes, and its master page contains Logout button at the top.Press Enter on web page Hi I am using asp.net with C. I have a texbox and a button on the webpage.