P
peter.moss
Right, I thought the idiots at MS had sorted this one out in 2.0 but
alas - no such bloomin' luck.
If I reset the style on my GridView control and just give it a CssClass
(trying to be all nice, modern XHTML 2.0, pure CSS, no HTML styling -
you know the stuff that's been rammed down web developers necks by the
W3C for the last 5 years) and the damn thing keeps outputting:
cellspacing="0" rules="all" border="1"
style="border-collapse:collapse;"
What are these attributes doing there? They are nothing to do with me
- I DON'T WANT THEM NEVER NEVER NEVER NEVER IN MY NICE CLEAN
HTML!!!!!!!!! They are evil horrible, pollutants required by idoits
who have no understanding of CSS. GET RID OF THEM!!!!
So how do I do it? - my blood is boiling over here. Seeing the HTML
elements have the last word on style it keeps mucking up my pages and I
have to go in and manually set all of the GridView controls to the
correct properties - compleletly nuking all the usefulness of style
sheets in one foul swoop.
So can I get GridView to ditch the attributes or am I going to have to
ditch GridView and throw it in the bin with all the other controls MS
have made useless by not following standards?
alas - no such bloomin' luck.
If I reset the style on my GridView control and just give it a CssClass
(trying to be all nice, modern XHTML 2.0, pure CSS, no HTML styling -
you know the stuff that's been rammed down web developers necks by the
W3C for the last 5 years) and the damn thing keeps outputting:
cellspacing="0" rules="all" border="1"
style="border-collapse:collapse;"
What are these attributes doing there? They are nothing to do with me
- I DON'T WANT THEM NEVER NEVER NEVER NEVER IN MY NICE CLEAN
HTML!!!!!!!!! They are evil horrible, pollutants required by idoits
who have no understanding of CSS. GET RID OF THEM!!!!
So how do I do it? - my blood is boiling over here. Seeing the HTML
elements have the last word on style it keeps mucking up my pages and I
have to go in and manually set all of the GridView controls to the
correct properties - compleletly nuking all the usefulness of style
sheets in one foul swoop.
So can I get GridView to ditch the attributes or am I going to have to
ditch GridView and throw it in the bin with all the other controls MS
have made useless by not following standards?