Well not much actually

There's imho one major flaw I'm currently experiencing and that is the lack of advanced CSS support. I'll explain with an example.
In classic ASP, when I want to build a list I do this:
<table class="list">
<tr class="list">
<th class="list"></th>
</tr>
<tr class="list">
<td class="list"></td>
</tr>
</table>
or
<div id="list">
<table>
<tr>
<th></th>
</tr>
<tr>
<td></td>
</tr>
</table>
</div>
I am a strong supporter of using CSS for storing as much design as possible. My HTML pages contain the 'skeleton' of the list while my CSS file contains the complete design. This works like a charm - by modifying the CSS,
every list on
every page in my site uses the new design. I hate using deprecated HTML attributes like
border,
cellspacing, etc. because almost every one of them is covered by CSS. The last couple of years, web development has slowly begun to evolve like this.
Now I'm using .NET so of course I want to use the very nifty DataGrid control. The problem is, these controls send you right back into the HTML stone age by applying the same old HTML attributes I mentioned above. Oh of course, I can disable most of them and apply CssClass properties, but CssClass is treated as an
additional property, not as
the container for
all visual attributes. The result is an HTML fragment with HTML attributes (
cellpadding="0")
AND a CSS class (
class="list")
AND CSS style attributes (
style="blah"). Looks like crap.
Imho, when using a web control you should be given the choice:
1) Use HTML attributes
2) Use
class=""3) Use
class="" and/or
style=""But
never a combination of all. You could (very) slowly phase out option #1 to please webdesigners who are still using classic HTML.
For now, I'l stick to disabling as much datagrid properties as possible (why do the CellSpacing and CellPadding properties accept a -1 value and BorderWith does not?).
Sorry for the lengthy post. I hope this explains my troubles a little, that CSS will play a more important role in future releases/updates, and that I haven't bored you all with this rant.

Cheers.