about menu control in asp.net

Posted by reddysankark-13471 under ASP.NET on 4/25/2012 | Points: 10 | Views : 941 | Status : [Member] | Replies : 1
hi,
my sitemap coding

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode>
<siteMapNode url="home.aspx" title="home" description="home" />

<siteMapNode url="aboutus.aspx" title="aboutus" description="aboutus" />

<siteMapNode url="changepassword.aspx" title="changepassword" description="changepassword" />


</siteMapNode>
</siteMap>

my web.config coding

<siteMap defaultProvider="XmlSiteMapProvider">
<providers>
<add
name="Company1SiteMap"
type="System.Web.XmlSiteMapProvider"
siteMapFile="~/Web.sitemap" />
</providers>
</siteMap>

how to add this coding to menu control tell me.please help me for this

sankarreddy


Responses

Posted by: Ajay1253 on: 4/25/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

Next go to Design page where you have Menu control >> Drag Site Map Datasource from Controls >> Give it a ID ID = SiteMapDataSourceId >> Next Go to menu Control Add SiteMap Datasource ID to Menu, You can find DatasourceId Attribute in Menu Just select Menu strip and press f4 then search for DatasourceID = SiteMapDataSourceId

If you need you can even drag SiteMap Path and also add Same DatasourceID = SiteMapDataSourceId

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response