I have a Treeview control which is currently outputting the results in an HTML table element, Ideally I would like to get this to output as an unordered List.
Something like
<asp:TreeView RenderAsList=”True”>
would be great if possible. Of course if it were that easy I wouldn’t be here!
Thanks in advance
If you’re wanting to make this an unordered list, I don’t think you’ll be able to do that using the normal Treeview control, what you could do is use a Repeater control that will let you build your list in html, and then use some jquery to format that list as a treeview.
http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
if you “must” have the full asp:Treeview functionality there is an ancient library that hasn’t been updated since 2006 that lets you render output of asp.net controls in a more css/html friendly fashion.
http://www.asp.net/cssadapters/