CSS Control Adapter Toolkit Released
5/3/2006 11:16:13 AM
Yesterday Scott Guthrie announced that the CSS Control Adapter Toolkit for ASP.NET 2.0 was released. I have been long awaiting this release so that the ASP.NET-rendered HTML output in my applications will look more organic.
For those of you that don`t know what a control adapter is it`s actually pretty neat. A control adapter allows you to override, modify, and/or tweak the rendering output logic of that control. With the current release of the CSS Control Adapter you will be able to render the output of the Menu, TreeView, DetailsView, FormView, and DataList.
Native ASP.NET Output
<table cellSpacing="1" cellPadding="1" width="100%" height="100%" border="0">
<tr>
<td valign="top" style="HEIGHT: 69px" bgColor="cornflowerblue">1</td>
<td valign="top" style="HEIGHT: 69px" bgColor="reddiebrownish">2</td>
</tr>
</table>
New Output
<
table class="_dataListOutput>
<tr>
<td class="_classA">1</td>
<td class="_classB">2</td>
</tr>
</table>
Much better looking output in my opinion. This might not be practical for most of you but I like to control the HTML and CSS output of my applications and projects whenever possible.
.NET,
CSS
