Click here to Skip to main content
15,913,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i dragged and dropped MenuControl. Create web.sitemap. clicked on upper right notch
of Menu control and browse datasource as SiteMap. Code added was sitemapdatasource tags.

1. This is Menu control
XML
<div id="MenuWrapper"><asp:Menu ID="Menu1" runat="server" CssClass="MainMenu"
            DataSourceID="SiteMapDataSource1" StaticEnableDefaultPopOutImage="false" Orientation="Horizontal"></asp:Menu>


having sitemapdatasource id

2. This is my sitemapdatasource tag

VB
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
            ShowStartingNode="False" />




I cant see my file web.sitemap reffered anywhere So how this menu comes to know
that i need to self create unordered list frm web.sitemap. Can some1 please help??
Posted

1 solution

Hi Shilpa,
Your question is unclear. Some examples here for you .


<configuration>
<system.web>
<sitemap enabled="true">
defaultProvider="SiteMapDataProvider">
<providers>
<add name="SiteMapDataProvider">
type="DBlock.SiteMapDataProvider, DBlock.SiteMapDataProvider" />





Refer to this link for details and more information .
http://www.codeproject.com/Articles/16860/Building-a-dynamic-SiteMap-in-ASP-NET-2-0-for-a-la
 
Share this answer
 

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