Classic ASP: Using Enter Key to Click Button

Giganews Newsgroups
Subject: Classic ASP: Using Enter Key to Click Button
Posted by:  Brett (Bre…@discussions.microsoft.com)
Date: Tue, 1 Jul 2008

First, I realize this is a .Net forum, but didn't see a good forum, with
decent traffic, for classic ASP questions, so bear with me :-)

I have a classic ASP page. I cannot convert to .Net at this time.

I created a simple form with one text box for a passsword and one input
button control.  That's it.

I am trying to make the Enter key click the button.  I tried the form's
defaultbutton property with ID and name on the button, but Enter just does a
submit and refreshes the form.

Any ideas?

Again, this is classic ASP, not .Net.

Thanks

Replies