B
Brian Cryer
I originally posted this on microsoft.public.dotnet.languages.vb but didn't
get a response. I suppose that whilst I'm using VB.NET this is probably I
generic .NET issue so I'm hoping someone will be able to help ...
I'm working on a web site (using VB.NET) where the customer is keen that all
the pages pass the W3C markup validation service (at
http://validator.w3.org). Whilst this has thrown up a number of items, I can
understand most and address them. But I'm stuck on one, what I'm hoping is
that someone could tell me why, whether I can do anything about it (or
whether its best to leave it as is):
Line blah, colum blah: there is no attribute "NAME"
<form name="Form1" method="post" action="default.aspx" id="Form1">
looking at the html inside VB.Net I have the line:
<form id="Form1" method="post" runat="server">
and I assume it is this line which is rendered as above in the browser. So,
in summary:
1. Why is name="Form1" added?
2. Can I disable this?
3. If I can disable it then should I? (Is it there for backwards
compatibility?)
Thanks in advance,
Brian
www.cryer.co.uk/brian
get a response. I suppose that whilst I'm using VB.NET this is probably I
generic .NET issue so I'm hoping someone will be able to help ...
I'm working on a web site (using VB.NET) where the customer is keen that all
the pages pass the W3C markup validation service (at
http://validator.w3.org). Whilst this has thrown up a number of items, I can
understand most and address them. But I'm stuck on one, what I'm hoping is
that someone could tell me why, whether I can do anything about it (or
whether its best to leave it as is):
Line blah, colum blah: there is no attribute "NAME"
<form name="Form1" method="post" action="default.aspx" id="Form1">
looking at the html inside VB.Net I have the line:
<form id="Form1" method="post" runat="server">
and I assume it is this line which is rendered as above in the browser. So,
in summary:
1. Why is name="Form1" added?
2. Can I disable this?
3. If I can disable it then should I? (Is it there for backwards
compatibility?)
Thanks in advance,
Brian
www.cryer.co.uk/brian