I have an <asp:treeview> control that looks like this:
<asp:TreeView ID="tvCategory" runat="server" CssClass="CategoryTree" NodeStyle-CssClass="TreeNode TreeNodeUDF" SelectedNodeStyle-CssClass="TreeNodeSelected TreeNodeSelectedUDF">
</asp:TreeView>
This control renders in my page as a table. Is there any way to make .NET render it as <ul><li> tags, so I can easily assign a CSS class to it? I need to change the appearance of this TreeView so that it is oriented horizontally, not vertically.
You could use the CSS control adaptors, with rendering mode not being available for the treeview control in .NET 4.0. Also see here for a similar question.
Perhaps spare yourself the trouble and go for a client side approach?