473,946 Members | 11,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SiteMapPath: Can I add node the following way?

Hello,

I want to add nodes to Asp.Net 2.0 SiteMapPath in my runtime code.

I did as follows:

' Create site map path node collection
Dim siteMapPathNode Collection As SiteMapNodeColl ection

' Add node
siteMapPathNode Collection.Add( New SiteMapNode(... ))

My problem is I am ask to insert a 'provider' in SiteMapNode. I don't
get it.

I have a data view with various rows and 2 columns 'Title' and 'Url'.
All I want is add these rows values to my site map path.

I was trying to loop through each row in my dataview but I am getting
this problem with the provider.

Can someone sugest me how to do this?

Thanks,
Miguel

Nov 2 '06 #1
1 3749
The norm is to use the web.sitemap to figure out where the user is in
hierarchy (logically, as the physical pages do not have to correspond to
"menu" hierarchy). If you want another means of representing this data, you
have to create a custom provider to turn your data into a proper path.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"shapper" <md*****@gmail. comwrote in message
news:11******** *************@f 16g2000cwb.goog legroups.com...
Hello,

I want to add nodes to Asp.Net 2.0 SiteMapPath in my runtime code.

I did as follows:

' Create site map path node collection
Dim siteMapPathNode Collection As SiteMapNodeColl ection

' Add node
siteMapPathNode Collection.Add( New SiteMapNode(... ))

My problem is I am ask to insert a 'provider' in SiteMapNode. I don't
get it.

I have a data view with various rows and 2 columns 'Title' and 'Url'.
All I want is add these rows values to my site map path.

I was trying to loop through each row in my dataview but I am getting
this problem with the provider.

Can someone sugest me how to do this?

Thanks,
Miguel

Nov 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2617
by: Robert Camsky | last post by:
Hi, I've got web.sitemap file with few nodes and subnodes and SiteMapPath control. It works fine. But imagine, I'm worrking on an calender implemented this way: calendar.aspx -> showing upcomming events calendar.apsx?year=2005 showing calendar for year 2005 calendar.apsx?year=2005&month=1 showing january in 2005 calendar.aspx?year=2005&month=1&day=1 showing 1/1/2005
1
3115
by: Danial | last post by:
Hi, How can I bind sitemappath (breadcrumb control of asp.net) to a custom ..sitemap file? By defualt its looking for web.sitemap file and giving me not found exception. Thanks Danial
1
4536
by: Jules | last post by:
In a ASP.NET 2.0 project I'd like to set an image as path separator in the SiteMapPath. When I edit the PathSepartor template (for this SiteMapPath) and drag an image on it, it works fine for all pages in the root of the Web project. VS2005 creates the folling aspx: <asp:SiteMapPath ID="SiteMapPath" runat="server"> <PathSeparatorTemplate> <img src="Images/arrow-right.jpg" /> </PathSeparatorTemplate> </asp:SiteMapPath>
1
1310
by: sean.marchetti | last post by:
Hello, I am having a little difficulty coming up with a solution for the following requirement and I was hoping somebody might be able to offer some help. I need to create a SiteMapPath for a category system that supports any number of nested categories. Here's what I mean: Category A Category B Category C
3
4472
by: Uriah Piddle | last post by:
Hi Gang, I have a SiteMapPath, bound to a Site Map, that traces a hierarchy down to an 'Article' leaf node. But the Article page shows one of many individual articles depending on which article the user chooses in the Articles page. The way it is set up now, if the user selects a particular article in the 'Articles' page, the SiteMap looks like this: '. . . Articles Article'. Assuming the user choses a cookie baking article, I would like...
1
2493
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 section navigation provided via a horizontal menu, a SiteMapPath to provide a breadcrumb and a vertical menu component on the left edge.
0
1376
by: Uriah Piddle | last post by:
Hi Gang, In my ASP.NET 2.0 project, I have several pages that require a query string and I have code that redirects if it is not both found and valid. This has caused problems with the SiteMapPath because when the user navigates backwards with it, the query string is not there. I researched this and wrote code that handles the SiteMapResolve event and puts the query string in the appropriate node. Then I ran into two things: 1. When...
2
4277
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
I’m trying to create a dynamic asp.net 2.0 siteMapPath control (using VB.net). Using the xml sitemap I’ve got these three pages: productGroup.aspx productListing.aspx productDetail.aspx Each page receives a query string i.e. productGroup.aspx?id=9 The page then renders with the appropriate details which have been accessed
1
4139
by: Swati Jain | last post by:
Hello all, can you please tell me how to disable links in SiteMapPath? I need it to show a path only without any links. RenderCurrentNodeAsLink = False is not enough.
0
9981
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11337
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8253
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7424
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6331
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4941
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4533
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3541
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.