Click here to Skip to main content
15,881,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a sitemap( Web.sitemap) taht is working with all the menu like Home, Contact Us...

So i do not know how to insert an icons to all the menu.

This is a table that i called the sitemap
C#
<asp:Table ID="Table1" runat="server"  Width = "800" HorizontalAlign ="Center">
                <asp:TableHeaderRow>
                    <asp:TableHeaderCell>

                    </asp:TableHeaderCell>
                </asp:TableHeaderRow>
                <asp:TableRow>
                    <asp:TableCell ColumnSpan="2" CssClass="div1">
                        <asp:Menu ID="Menu1" runat="server" DataSourceID="source1" BackColor="Gray"
                            Font-Names="Verdana" Font-Size="Small" ForeColor="#e6e6c8" Orientation="Horizontal" Width="800px" >
                            <StaticHoverStyle BackColor="Gray" ForeColor="White" CssClass="TableHead" />
                            <StaticMenuItemStyle HorizontalPadding="50px" VerticalPadding="2px" CssClass="TableHead" />
                            <StaticSelectedStyle BackColor="Blue" ForeColor="White" CssClass="TableHead" />
                            <DynamicHoverStyle BackColor="Blue" ForeColor="White" CssClass="TableHead" />
                            <DynamicMenuItemStyle HorizontalPadding="30px" VerticalPadding="2px"  CssClass="TableHead"/>
                            <DynamicMenuStyle BackColor="Blue" BorderWidth="2px" BorderColor="#2f9ca3" CssClass="allcev"/>
                            <DynamicSelectedStyle BackColor="Maroon" CssClass="allcev" />
                        </asp:Menu>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="div1" Width="70" Height="60">

                        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                        </asp:ContentPlaceHolder>
                    </asp:TableCell>
                    
                </asp:TableRow>
                <asp:TableRow>
                    
                        <asp:TableCell RowSpan="2" VerticalAlign="Top" HorizontalAlign="Center">
                        <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
                        </asp:ContentPlaceHolder>
                    </asp:TableCell>
                    
                </asp:TableRow>

                <asp:TableRow CssClass="sitemap">
                    <asp:TableCell HorizontalAlign="center" ColumnSpan="2" CssClass="cell">
                        <br />
                        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
                        </asp:SiteMapPath>
                    </asp:TableCell>
                </asp:TableRow>

        </asp:Table>

This is my sitemap
CSS
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode>
    <siteMapNode  title="Home" url="Default.aspx" />



    <siteMapNode   title="LogIn as" >
      <siteMapNode  url="LogInStudent.aspx" title="Student"/>
      <siteMapNode url="LogInAdmin.aspx"  title="Administrator"/>

    </siteMapNode>
    
      <siteMapNode  title="Vote" url="Vote.aspx">
  </siteMapNode>

      <siteMapNode  title="View">
        <siteMapNode  title="View Manifesto"/>
        <siteMapNode  title="View Voting Poll"/>
        <siteMapNode  title="View Final Results"/>
        <siteMapNode  title="View Party"/>
      
    </siteMapNode>
 
    <siteMapNode  title="Contact Us" url="ContactUs.aspx" />

    <siteMapNode  title="Help" url="Help.aspx" />
  </siteMapNode>
</siteMap>
Posted
Updated 23-Apr-13 21:33pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900