473,386 Members | 1,720 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,386 software developers and data experts.

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 siteMapPathNodeCollection As SiteMapNodeCollection

' Add node
siteMapPathNodeCollection.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 3724
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*********************@f16g2000cwb.googlegro ups.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 siteMapPathNodeCollection As SiteMapNodeCollection

' Add node
siteMapPathNodeCollection.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
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...
1
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
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...
1
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...
3
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...
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...
0
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...
2
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 ...
1
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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
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...

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.