How to force Asp.net 3.5 Menu Control to Rendered as UL List Item
As you all know Asp.net 3.5 and past generations Rendered as Table ( TR - TD ) form and this makes it heavy to load and blah blah blah. Microsoft change the rendering methods of this control from table to UL LI in Asp.net 4.0
As I am using Asp.net 3.5 , Is there any solution to force this control rendered as a 开发者_如何学编程UL LI ?
Simply Change Rendering Mode :)
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" CssClass="menu"
RenderingMode="List" >
The CSS friendly control adapters for ASP.NET 2.0 are doing precisely that. I've used them a couple of times and they always did the job. They can be activated/deactivated for each control type. For the grid control for example they render the tag, which as we all know is essential for easy styling.
精彩评论