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 5985085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:28:37+00:00 2026-05-22T22:28:37+00:00

I have a problem on IE6 only. I have a page with several forms,

  • 0

I have a problem on IE6 only.

I have a page with several forms, each contains a textbox and a submit button. As I’m using .NET MVC, I need the name of the submit button to execute the correct Action. When I’m hitting ‘Enter’ key, I have the same behaviour as a clicked action on Firefox or Chrome (Field and ButtonName is sent), but not in IE6, where I have only the field that sent.

So how to send the name of the button when I’m hitting ‘Enter’ key on IE6 ?

tl/dr :
I need to send in POST this

Field=foo&Search=

by clicking the ‘Enter’ key on IE6 and not only

Field=foo

Chrome and Firefox works well by clicking or hitting ‘Enter’

Thanks for helping 🙂

[EDIT] Add an example:

Source code

   <!-- gestion type operation -->
<fieldset>
    <legend>Interface de gestion des Types d'Opérations</legend>
    <% Html.BeginForm("TypeOperation", "Administration", FormMethod.Post); %>
    <%= Html.EditorFor(m => m.TypeOperationField)%>
    <input type="submit" id="RechercheTypeOperation" name="RechercheTypeOperation" value=""
        class="loupe" />
    <% Html.RenderPartial("ListeTypeOperation", Model); %>
    <% Html.EndForm(); %>
</fieldset>
<!-- gestion type operation -->

It is pretty simple, this form struct is repeated each time I need a search textbox + submit button in page.
Forms are well opened and closed when the code is generated.

Generated Code

    <!-- gestion type operation -->
<fieldset>
  <legend>Interface de gestion des Types d'Op&#233;rations</legend>
  <form action="/Administration/TypeOperation" id="form3"
  method="post">
    <input class="text-box single-line" id="TypeOperationField"
    name="TypeOperationField" type="text" value="" />
    <input type="submit" id="RechercheTypeOperation"
    name="RechercheTypeOperation" value="" class="loupe" />
    <div>
      <table class="grid">
        <thead>
          <tr>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td></td>
          </tr>
        </tbody>
      </table>
    </div>
  </form>
  <script type="text/javascript">//
<![CDATA[
if (!window.mvcClientValidationMetadata) { window.mvcClientValidationMetadata = []; }
window.mvcClientValidationMetadata.push({"Fields":[],"FormId":"form3","ReplaceValidationSummary":false});
//]]>
</script>
</fieldset>
<!-- gestion type operation -->

[EDIT 2] I have add this line inside my form

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

And it’s working.

  • 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-22T22:28:38+00:00Added an answer on May 22, 2026 at 10:28 pm

    I think, you shouldn’t rely on the name of submit button, but rather create an <input type="hidden" with the name you want (like search).

    There’s really no difference between submit button name and the name of any other input field, except that submit input field is not really a field, so there always could be some artifacts with that.

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

Sidebar

Related Questions

can anyone help? I have a problem aligning rounded corners in IE6/7. Basically everything
We have a strange problem when implementing sessions with ColdFusion in IE6. After login
I have problem with starting processes in impersonated context in ASP.NET 2.0. I am
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have a form which has expanded beyond the desired height in IE6 only
I have an issue with a layout which only occurs with ie6 or 7
I have problem with floating in IE6. The HTML code: <div id=stran> <img src=../Slike/prejsnja.png
I have a page that contains a user control that is just a personalized
I have problem in some JavaScript that I am writing where the Switch statement
I have problem with return statment >.< I want to store all magazine names

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.