Hi,
I have this dropdownlist that breaks xhtml w3c validation because it
generates a select tag with a javascript property. this only happens
when autopostback is set to true.
so the the validation error that i get is this:
Error
Line 263 column 86:
there is no attribute "language".
...PostBack('dropArchive','')" language="javascript" id="dropArchive">
this is the code.
this control:
<asp:dropdownlist id="dropArchive" runat="server" AutoPostBack="True"></asp:dropdownlist>
generates this html:
<select name="dropArchive" onchange="__doPostBack('dropArchive','')"
language="javascript" id="dropArchive">
<option value="1">Episode 1</option>
<option value="2">Episode 2</option>
<option selected="selected" value="3">Episode 3</option>
</select>
any idea on how can i stop the dropdownlist to generate the
language="javascript" bit?
would the dropdown work without it? (I guess so?)
Thanks!