I have an ASPX page, which contains a form. That form has been given a name and and id. The aspx page also has a master page to which it is linked.
When the page is served up, both the name and id of the form are different. The name, for example, changes from "uploadForm" to "Form1"
The action of the form also appears to be altered.
What is the cause of this, and how can I prevent it?
The opening line of the aspx page is thus:
<%@ Page Language="C#" MasterPageFile="~/Modal.Master" AutoEventWireup="true" CodeBehind="UploadPage.aspx.cs" Inherits="WebConnect.UploadPage" %>
And the form tag is:
<form id="uploadForm" name="uploadForm" enctype="multipart/form-data" action="Upload.ashx" method="post">
When served, it appears as:
<form id="Form1" action="UploadPage.aspx" method="post">
UPDATE: Here is the entire body of the page:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<form id="uploadForm" name="uploadForm" enctype="multipart/form-data" action="Upload.ashx" method="post">
<div>
File:
<input id="file1" name="fileField" type="file" />
<input id="objectID" name="objectID" type="hidden" />
<input id="fieldID" name="fieldID" type="hidden" />
<input id="submitType" name="submitType" type="hidden" />
<progress id="uploadProgress" value="10" max="100" display="none"></progress>
<button id="Html5Submit" type="button" onclick="AsyncSubmit()">Submit</button>
<button id="Html4Submit" type="button" onclick= "SyncSubmit()">Submit</button>
</div>
</form>
<div id="Html5Upload">
</div>
</asp:Content>