473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Connecting Sitemap file with Menu dynamically

Hi i need to change the menu dynamically for different pages..I have created different sitmep file and added it in web.cofig but menu is not displyaing..Can any one tell how to do this ..
Jun 9 '07 #1
4 1461
kenobewan
4,871 Expert 4TB
Welcome to TSDN. What is your platform? Please provide more info?
Jun 10 '07 #2
Welcome to TSDN. What is your platform? Please provide more info?
It's .net 2.0 .I am using VB
Jun 10 '07 #3
Hello ! Try this !

<system.web>
<!-- other configuration sections -->
<siteMap defaultProvider="Menu1">
<providers>
<add name="Menu1" type="System.Web.XmlSiteMapProvider" siteMapFile="~/menus/Menu1.sitemap"/>
<add name="Menu2" type="System.Web.XmlSiteMapProvider" siteMapFile="~/menus/Menu2.sitemap"/>
</providers>
</siteMap>

And in the webForm you :

SiteMapDataSource1.SiteMapProvider = "Menu1"; //or Menu2
SiteMapDataSource1.DataBind();


This in c# , I think it´s work in VB.

[]s

Valmir




Hi i need to change the menu dynamically for different pages..I have created different sitmep file and added it in web.cofig but menu is not displyaing..Can any one tell how to do this ..
Jun 10 '07 #4
Yes it's Working..
Thanks
Jun 12 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Joe | last post by:
I have a web.sitemap file that has the url title and description. I then have this attac attached to a menu. I want some of my menu choices to open up in a page in a new window ie _blank as...
1
by: mike | last post by:
I have 2 sites in my company. My .NET site uses a master page and a Menu control connected to a sitemap. In my sitemap file I would like to be able to do something like this: <sitemap>...
2
by: -D- | last post by:
I'm taking my first stab at using xml, so please bear with my novice questions and understanding of xml. I'm trying to create an xml file that holds all my website navigation. If I understand...
5
by: JJ | last post by:
Although this question involves Flash, I suspect the actual issue is an asp one.. I am trying to open the web.sitemap file in an .swf file enbedded in an asp page (I'm working in VS 2005). I...
2
by: mocsoft | last post by:
Does anyone know how to use the sitemap file to generate attractive menus other than those specified in Visual Web Developer (menu, treeview). The menu control seems to always group the menu items...
1
by: Alec MacLean | last post by:
Hi. I'm using VS2005 Pro to work on a website project for my company. The site has several navigation elements, all based on the standard VS2005 navigation components. I have high-level...
1
by: Velvet | last post by:
I keep getting this error: Could not find the sitemap node with URL '~/Web.sitemap'. I have a master page that has a menu control and a SiteMapDataSource on it. <asp:Menu ID="Menu1"...
1
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi guys, So the ever-lasting problem has remained until now - how to create a dynamic sitemap from information stored in a database. Microsoft's MSDN magazine covered how to do this using a...
1
by: carlos | last post by:
I am using asp.net 2.0 to bind my menu controls using xml web.sitemaps. I created a sitemap for each role, and what I am trying to do is dynamically bind the menucontrol's datasource with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.