Hello,
For the past month I have been spending most of my time going around
ASP.NET rendering problems!
For example, since when a disabled check box should be rendered the
following way:
<span disabled="disabled">
<input id="CheckBox1" name="CheckBox1" disabled="disabled"
type="checkbox">
</span>
There is no disabled attribute for span!
And I could give many more examples. How can I go around this?
Every day that passes I am closing to move to Ruby On Rails ... after
using ASP.NET since the first version!
Why does not Microsoft spend sometime working on rendering HTML
following the W3C rules.
ASP.NET just invent attributes that does not exist!!!!!!!!!!!
How can Microsoft Developers are able to accomplish these things?!
Anyway, is there a way to go around the CheckBox problem?
Thanks,
Miguel
bruce barker - 03 Dec 2007 05:07 GMT
if xhtml conformance is important, use the html controls instead of the
abstract ui controls. then you can control the attributes.
-- bruce (sqlwork.com)
> Hello
>
[quoted text clipped - 28 lines]
>
> Miguel
AG - 03 Dec 2007 15:25 GMT
I've noticed that <span disabled="disabled"> tag also. You can get around it
by using an html checkbox with runat="server" attribute and the extra tag
will not be generated. I just tried it in a gridview.
FWIW, I agree. MS should clean up their html.

Signature
AG
Email: discussATadhdataDOTcom
> Hello,
>
[quoted text clipped - 28 lines]
>
> Miguel