web button

  • Thread starter Thread starter Alex B
  • Start date Start date
A

Alex B

A simple web button question:

How do you make it so that a web button's click event is triggered when
someone hits <enter> on a web form?

i.e. the page has three input boxes on it and a web button. When enter is
pressed, a postback occurs, but no events are triggered.
 
Hi

you mean this ????

private void Button1_Click(object sender, System.EventArgs e)

{

Response.Write("<br> <br> Hello <br>");

}



This is in C# i hope it's fine for you



Be sure you are using a WEB SERVER CONTROL

and not an HTML push button.
 
Hi Alex,

Do you mean an aspx webform button or a html button as in my opinion given
as answer by Ben?

Cor
 
Thanks Ben! The terms I used to search usenet didn't get me the answer -
however your search terms point to exactly the answer(s) I need --- thanks!!
 
Alex said:
Thanks Ben! The terms I used to search usenet didn't get me the answer -
however your search terms point to exactly the answer(s) I need ---
thanks!!

Yeah, it can be a challenge sometimes to come up with the best keywords to
do a search on.

Good luck,
Ben
 
Back
Top