I'm attempting to get the site to have valid HTML but it seems that the built in .NET controls (eg image buttons) write out html with attributes which are not accepted by the HTML validator (
My code reads:
<asp:imagebutton id="btnLogin" onclick="doLogin" tabIndex="3" Runat="server" imageurl="enterButton.gif" width="45" height="18" EnableViewState="False"></asp:imagebutton>
The outputted HTML is:
<input type="image" name="btnLogin" id="btnLogin" tabindex="3" src="enterButton.gif" border="0" style="height:18px;width:45px;" />
According to the validation report, there is no "border" attribute of the INPUT tag. Is there a way to stop this being put in????
cheers
van.
My code reads:
<asp:imagebutton id="btnLogin" onclick="doLogin" tabIndex="3" Runat="server" imageurl="enterButton.gif" width="45" height="18" EnableViewState="False"></asp:imagebutton>
The outputted HTML is:
<input type="image" name="btnLogin" id="btnLogin" tabindex="3" src="enterButton.gif" border="0" style="height:18px;width:45px;" />
According to the validation report, there is no "border" attribute of the INPUT tag. Is there a way to stop this being put in????
cheers
van.