问题
I want my TreeView control to output <ul><li> tags instead of <tables>. What is the best way to do this. I heard about the CSS Control Adapters. Is this still the best way? How do you go about doing it?
回答1:
I am assuming you mean CSS Friendly Control Adapters? Which is the still the best way that I know of. In the HTML Snippets it doesn't render tables.
Your other option would be to build the control by hand just using plan old HTML and possibly a Jquery Plugin to manipulate the tree.
来源:https://stackoverflow.com/questions/640158/treeview-css-friendly-output-control-adapters-asp-net-3-5