locked
Invalid XHTML RRS feed

  • Question

  • User-461467335 posted

    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

    Monday, October 15, 2007 7:54 AM

Answers

  • User214117797 posted

    Well, you can override the page render method and strip out or replace the attribute from the htmltextwriter 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 15, 2007 5:58 PM

All replies

  • User214117797 posted

    Well, you can override the page render method and strip out or replace the attribute from the htmltextwriter 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 15, 2007 5:58 PM
  • User-461467335 posted

    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

    Tuesday, October 16, 2007 4:08 AM