What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 11027 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > about menu control in asp.net ...
Reddysankark@Yahoo.Com

about menu control in asp.net

Replies: 1 | Posted by: Reddysankark@Yahoo.Com on 4/25/2012 | Category: ASP.NET Forums | Views: 264 | Status: [Member] | Points: 10  


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


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Ajay1253
Ajay1253  
Posted on: 4/25/2012 12:58:09 PM
Level: Starter | Status: [Member] | Points: 25

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@Yahoo.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 11:59:48 PM