[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

=?Utf-8?B?cm9kY2hhcg==?=

2/16/2004 10:31:00 AM

I have a web form with a textbox and a button. What I want to happen is whenever enter key was pressed, the script behind button_click will be triggered. I have already searched problem same as mine but I was not able to resolve it since they make use of c#. How can I do this using VB.net?
1 Answer

Alessandro Zifiglio

2/19/2004 1:46:00 PM

0

hi Cherry, if that button is the only button on your form then it will be
the default button that will postback when you hit enter, however if you
have more than one button then you will have to resort some javascript to
perform this.

Andy smith has a free control, the "default button" which makes this very
simple and does exactly this, in that you can designate a default button and
control this from code.

for more check out his free control.
http://www.metabui...

hmm the site appears to be down. However should be back online soon. Look
for the default button control from the list of controls on his site.
"Cherry" <anonymous@discussions.microsoft.com> wrote in message
news:8ECE0C44-689D-48E3-950A-5A67A5584740@microsoft.com...
> I have a web form with a textbox and a button. What I want to happen is
whenever enter key was pressed, the script behind button_click will be
triggered. I have already searched problem same as mine but I was not able
to resolve it since they make use of c#. How can I do this using VB.net?