ASP.NET adds invalid attribute to the form!!

  • Thread starter Thread starter Alan Silver
  • Start date Start date
A

Alan Silver

Hello,

I am just trying (and failing miserably) to massage my pages into valid
XHTML. One problem I am having is that the framework has added a "name"
attribute to the main form, and XHTML doesn't have a "name" attribute.

Anyone any idea why? The content of the master page looks like...

<form id="Form1" runat="server">

....and the resulting output looks like...

<form name="aspnetForm" method="post" action="Default.aspx"
id="aspnetForm">
 
Anyone? I'm still having this problem.

Alan Silver said:
Hello,

I am just trying (and failing miserably) to massage my pages into valid
XHTML. One problem I am having is that the framework has added a "name"
attribute to the main form, and XHTML doesn't have a "name" attribute.

Anyone any idea why? The content of the master page looks like...

<form id="Form1" runat="server">

...and the resulting output looks like...

<form name="aspnetForm" method="post" action="Default.aspx"
id="aspnetForm">
 
Back
Top