Just sharing some of my inconsequential lunch conversations with you... RSS  

Tuesday, October 24, 2006

REF: What if ASP.NET controls could actually generate CSS friendly markup?

in: ASP.NET Friendly CSS Controls

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 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 CSS Friendly ASP.NET 2.0 Control Adapters 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.

No comments:

Development Catharsis :: Copyright 2006 Mário Romano