By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,827 Members | 813 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,827 IT Pros & Developers. It's quick & easy.

Pressing ENTER does not invoke the only SUBMIT button.

P: n/a
Neo
I think the ENTER key worked this way (in the classic ASP days):

When the end user presss ENTER, IE will submit the page by 'simulating'
a click on the first submit button (or image).

On the server side, I will get Len(Request.Form("btnDoSave")) > 0 if
that first button is named btnDoSave.

But, from a version I am not sure, IE began to loose this feature. How
can I work around this?
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Neo
Neo wrote:
I think the ENTER key worked this way (in the classic ASP days):

When the end user presss ENTER, IE will submit the page by 'simulating'
a click on the first submit button (or image).

On the server side, I will get Len(Request.Form("btnDoSave")) > 0 if
that first button is named btnDoSave.

But, from a version I am not sure, IE began to loose this feature. How
can I work around this?


More on this topic:

I tested the same ASPX page using Opera 7.50 beta 1 and Firefox 8.0
(Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a) Gecko/20040510
Firefox/0.8), the ENTER key works exactly the same as what I expected.

I have IE 6.0/SP1 with all latest hotfixes installed. IE even submits
the page if there is NO submit button/image!
Nov 18 '05 #2

P: n/a
its a known bug in IE (only 1 submit button and only input type=text), but I
don't expect a fix. there is work around:

string script = "<script>if (document.all) document.write('<input
type=hidden name=buttonName>'</script>",
RegisterStartupScript("submitHack",script);
-- bruce (sqlwork.com)
"Neo" <ne***********@msn.com> wrote in message
news:OG**************@TK2MSFTNGP10.phx.gbl...
Neo wrote:
I think the ENTER key worked this way (in the classic ASP days):

When the end user presss ENTER, IE will submit the page by 'simulating'
a click on the first submit button (or image).

On the server side, I will get Len(Request.Form("btnDoSave")) > 0 if
that first button is named btnDoSave.

But, from a version I am not sure, IE began to loose this feature. How
can I work around this?


More on this topic:

I tested the same ASPX page using Opera 7.50 beta 1 and Firefox 8.0
(Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a) Gecko/20040510
Firefox/0.8), the ENTER key works exactly the same as what I expected.

I have IE 6.0/SP1 with all latest hotfixes installed. IE even submits
the page if there is NO submit button/image!

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.