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

  • SEARCH
  • Home
  • 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 220029
In Process

The Archive Base Latest Questions

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

In ASP.NET webforms and ASP 3 (Classic ASP), I came across an issue whereby

  • 0

In ASP.NET webforms and ASP 3 (Classic ASP), I came across an issue whereby naming your form submit button “submit” would “break things”. Below is the rendered HTML:

<input type="submit" name="Submit" value="Submit" id="Submit" />

I say “break things” because I’m not sure exactly why or what happened. But the symptoms usually were that pressing the submit button sometimes did nothing i.e. it just didn’t work. But sometimes it did work.

In fact, I just built a quick one page test with the the code below, and submitting worked fine:

<form id="form1" runat="server">
<div>
    <asp:TextBox ID="txtTest" runat="server" />
    <asp:Button ID="Submit" runat="server" Text="Submit" />
</div>
</form>

But, in the past, this problem has arisen, and renaming the button always made the symptom go away.

So, does any HTML/HTTP/Browser expert know of any reason why setting id=”submit” on a Submit button would cause any problems?

EDIT

this SO comment seems to suggest “submit” is a reserved keyword. But why would the “id” or “name” attributes intefere with this? And how does this “reserved” keyword get implemented in such a way that would cause conflicts?

thanks again

  • 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-11T18:54:01+00:00Added an answer on May 11, 2026 at 6:54 pm

    The form element has a method named submit, but also has the form elements in the form as members.

    If you have a button in the form named submit, you could access it using document.form1.submit. However, as that is the same name as the submit method, there is no longer any way of accessing that method. If you use the method to submit the form, that will no longer work.

    For example, if you have a button that submits the form using Javascript, that doesn’t work:

    <input type="button" name="submit" onclick="this.form.submit();" value="try" />
    

    When the button tries to use the submit method, it will instead get a reference to itself (and an error message when trying to call it, as the button is not a function).

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

Sidebar

Related Questions

I have a web site that runs both classic ASP and ASP.NET Webforms. The
With ASP.NET Webforms, I could drag and drop a control on a form and
When using ASP.net webforms my usual solution would have following type of setup -
I have used response.redirect in classic ASP and ASP.NET webforms. However, with MVC 2.0,
I have a classic ASP 2.0 project coming up. I mostly do ASP.NET WebForms
I barely got into ASP.Net webforms when MVC came out, and now I'm ready
ASP.NET 4.0 WebForms Works fine in classic mode, but then my URL-routing doesnt work.
As a classic ASP developer about once a year since ASP.NET came out I
Jeffery Palermo says 'Classic WebForms More Mature Than ASP.NET MVC': Is Classic WebForms More
I'm working with an ASP.NET MVC 2 project using a classic ASP.NET WebForm wired

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.