Board index » Visual Studio » web button

web button

Visual Studio261
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.


-
 

Re:web button

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.







"Alex B" <nospameroni@sparmerio.com>wrote in message

Quote
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.









-

Re:web button

Alex B wrote:



Quote
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. This has been discussed before. Here are some of the discussions in

the past:



groups.google.com/groups&lr=&num=100&hl=en">groups.google.com/groups&lr=&num=100&hl=en



Ben





-

Re:web button

Hi Alex,



Do you mean an aspx webform button or a html button as in my opinion given

as answer by Ben?



Cor





-

Re:web button

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!!



"Ben Amada" <ben@REpoMOweVErpick.com>wrote in message

Quote
Alex B wrote:



>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. This has been discussed before. Here are some of the discussions in

the past:





groups.google.com/groups&lr=&num=100&hl=en">groups.google.com/groups&lr=&num=100&hl=en



Ben









-

Re:web button

Alex B wrote:



Quote
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





-