Last post Sep 23, 2007 09:06 PM by CSharp_Dumber
Sep 22, 2007 08:55 PM|CSharp_Dumber|LINK
I just want to find out if there's an easy way of changing the way web controls are displayed or the code that's generated.
As far as I know, most of the web controls are displayed using html tables for repeated data (e.g. DataList). And I hate tables for formatting because they are less maintainable (mashed up) and slower to load.
I've tried replacing the generated <table><tr><td></td></tr></table> with standard html lists instead (e.g. <ul><li></li></ul>) by editing the templates. But when I view the source from the browser after the modifications, I
still see table elements. AAaaaaargh!!!! Why?????
Sep 23, 2007 11:04 AM|joteke|LINK
CSS Friendly Control Adapters is probably what you look for:
You can tweak the adapters to make controls render exactly as you want. E.g ASP.NEt has adaptive rendering architecture which makes possible to write adapters to manage rendering of your controls.
Sep 23, 2007 09:06 PM|CSharp_Dumber|LINK
Thanks for that, it was really helpful.
Ive downloaded that example csadapters project, and it does wonders!
I now have full control of, err...my controls.