Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1063305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:45:54+00:00 2026-05-16T18:45:54+00:00

I have a problem in IE. Hitting enter when the focus is on the

  • 0

I have a problem in IE. Hitting enter when the focus is on the last input control sends the focus to the “Next” button. This submits the form. So far, so good.

The code in my base class WizardController looks to see if the Next submit button is null, as follows:

        protected string NextButton 
        {
            get 
            { 
                return ControllerContext.HttpContext.Request.Params["NextButton"];Nex
            }
        }

However, despite the form submitting, this property returns null unless the user explicitly clicks on the button with his mouse.

This is blatantly wrong, but I have no idea why it is happening.

EDITED TO SPECIFY THE PRECISE PROBLEM:

The problem only occurs IF there is ONLY one TEXT input control in the HTML form that gets rendered to the browser.

END EDIT

Andrew

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:45:55+00:00Added an answer on May 16, 2026 at 6:45 pm

    I have finally found an explanation for my problem:

    It seems to be a bug in IE, whereby if there is a single text input in the rendered HTML form, then IE will not submit the form properly. The issue is described (briefly) at:

    Form Submit via Enter Key when using IE

    In the above link, no description is given as to why the bug occurs, or since what version of IE, so a blanket solution is better.

    The workaround suggested in the article is to add a css hidden text input (with conditionals for IE):

    <!--[if IE]>
      <input type="text" style="display: none;" disabled="disabled" size="1" />
    <![endif]-->
    

    This worked for me, so issue solved.

    The following is included to document the issue as I experienced it:

    Unlike the problem described in the article, my form did submit. However, when I tried to check which button had been accessed by hitting tab or enter key, no submit button was in the HttpContext.Request.Params collection. So the behaviour I saw was slightly different.

    What the above article did identify is that this behaviour is only seen WHEN there is ONLY one text input control. A single check box, for example, does not cause the problem.

    I hope that this documents the problem adequately… and that MS will one day correct the bug.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form, very basic, and when I hit enter key nothing happens
I'm using Glade-3 for my GUI design, but I keep hitting this problem. I
I have a problem that I have not faced before: It seems that the
I have a form containing several drop lists and a text field, and a
The following code is used so when clicking 'enter' when focused in an input
ASP.NET 2.0, testing in FF3 and IE7. When I hit the 'enter' button from
I have a problem with a newly installed Visual Studio 2008 (new pc) and
I've created a screen in WPF that accepts input from a barcode scanner. I
I'm attempting to make an auto-indenting textarea and so far it works with the
Using IE 7, JDK 1.6 and Sun Web server 7. Inside the jsp form,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.