Geeks With Blogs
Chris Breisch   .NET Data Practices
Search this Blog!

Finally, a way to generate CSS friendly output when using the ASP.NET controls.  I'd mandate the use of these adapters on any public facing website.  If you're not using them, you must just like causing trouble.

ASP.NET is a great technology for building web sites but it would be even better if it provided more flexibility for customizing the rendered HTML. For example, the Menu control makes it simple to add a menu to a web site, but it would be better if it didn't create <table> tags and was easier to style using CSS. Happily, it's easy to customize and adapt the Menu control to generate better HTML. Indeed, you can modify any ASP.NET control so it produces exactly the HTML you want.

The key is to use something that may be new to you: control adapters. These are little chunks of logic that you add to your web site to effectively "adapt" an ASP.NET control to render the HTML you prefer. The ASP.NET 2.0 CSS Friendly Control Adapters kit provides pre-built control adapters that you can easily use to generate CSS friendly markup from some of the more commonly used ASP.NET controls.

Download it here.

Posted on Thursday, February 15, 2007 7:39 AM ASP.NET | Back to top


Comments on this post: ASP.NET 2.0 CSS Friendly Control Adapters 1.0

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Chris J. Breisch | Powered by: GeeksWithBlogs.net