So I have an asp.net image tag:
<asp:Image runat="server" ImageUrl="~/Images/img.jpg" width="350px" height="250px" AlternateText="My Image" />
but it's outputting this:
<img src="Images/img.jpg" height="250" width="350" border="0" />
...the XHTML validator reckons that the "border" element shouldn't be there...but it's ASP.Net that's adding it.
I'm sure this question has been asked many times before, but why does asp.net think it needs to add it, especially because it's invalid??
How can this be avoided so that it does validate?