Last post Oct 16, 2007 04:08 AM by Spider Monkey
Oct 15, 2007 07:54 AM|Spider Monkey|LINK
I have a project which makes use of the TreeView CSS Adapter - which is all good. However I also need to make use of the standard TreeView control and have included the attribute
on the appropriate control. When rendered the control does not use the CSS adapter, however the XHTML output includes the attribute and value AdapterEnabled="false" within a <div> tag.
<div id="ctl00_ContentPlaceCenterContent_tvwSiteMap" AdapterEnabled="false">
Could anyone advise how to remove this invalid tag from the output.
Oct 15, 2007 05:58 PM|jimmy q|LINK
Well, you can override the page render method and strip out or replace the attribute from the htmltextwriter
Oct 16, 2007 04:08 AM|Spider Monkey|LINK
Thanks for the advice. I had implemented a new control to inherit tree view control and overridden it's render method. I do however prefer your appraoch of manipulating the html output at the page level.