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
AdapterEnabled
="false"
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.
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.
Member
1 Points
2 Posts
Invalid XHTML
Oct 15, 2007 07:54 AM|Spider Monkey|LINK
Hi,
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
AdapterEnabled
="false"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.
Thanks
All-Star
21707 Points
3558 Posts
Re: Invalid XHTML
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
Member
1 Points
2 Posts
Re: Invalid XHTML
Oct 16, 2007 04:08 AM|Spider Monkey|LINK
Hi Jimmy,
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.
Thanks again