Microsoft just relased (Beta 2)CSS friendly ASP. NET 2.0 control adaptersThat render pure CSS optimized markup for ASP. net controls. control adapters are a new built-in extensibility mechanic in ASP. NET 2.0 that allows you to hook into any ASP. NET Server Control and change the rendering of that control.
There are control adapters for the following controls:
- Menu
- Treeview
- Detailsview
- Formsview
- Datalist
- Gridview (new)
- Login (new)
- Changepassword (new)
- Createuser (new)
- Passwordrecovery (new)
- Loginstatus (new)
When you download and install the CSS friendly control adapters, there is a new project template under my templates, calledASP. net css friendly website, That you can use to create a new website project. Inside the project template are a few samples using the menu, Treeview, etc. Controls showing off the new control adapters.
The amount of files that get added to your website is noticeable:
If you want to add the CSS control adapters to an existing website, read the whitepaper which has a step-by-step guide to integrating the CSS friendly control adapters to an existing website. I also recommend checking out the CSS friendly control adapters forum.
In addition, Scott Guthrie has two great posts on the new CSS friendly control adapters: CSS control adapter toolkit for ASP. NET 2.0 and CSS control adapter toolkit update.
Original article: CSS friendly ASP. NET 2.0 control adapters-CSS optimized markup for ASP. NET controls