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

external links using a sitemap, 2.0

I've successfully created a dynamic menu pulling data from a database
however all links thus far have all been virtual urls such as
/ABCD/default.aspx, /ABCD/profile.aspx, etc. Now I want to add urls
that are external to my site such as
http://www.rathergood.com/moon_song/ or http://www.cnn.com but when I
try to use these I get
"Exception Details: System.Web.HttpException:
'http://www.rathergood.com/moon_song/' is not a valid virtual path.".

It is failing on the AddNode method of StaticSiteMapProvider. I've
even tried
/ABCD/externalURL.aspx?url=http://www.rathergood.com/moon_song/ and
still get the same error.

Is there a way for me to reference an external url without having to
hardcode it into my page?

Thanks,
Happy Wednesday,
Robert

Jan 25 '06 #1
1 2398
I am having the same problem. I am using the SqlSiteMapProvider class found
in the Feb 2006 MSDN Magazine. If I use the out-of-the-box
XmlSiteMapProvider, I can use an external URL just fine. Looks like both
providers derive from StaticSiteMapProvider, and SqlSiteMapProvider doesn't
override the AddNode method. There must be a reason...
--
Ken Jensen
"fernandezr" wrote:
I've successfully created a dynamic menu pulling data from a database
however all links thus far have all been virtual urls such as
/ABCD/default.aspx, /ABCD/profile.aspx, etc. Now I want to add urls
that are external to my site such as
http://www.rathergood.com/moon_song/ or http://www.cnn.com but when I
try to use these I get
"Exception Details: System.Web.HttpException:
'http://www.rathergood.com/moon_song/' is not a valid virtual path.".

It is failing on the AddNode method of StaticSiteMapProvider. I've
even tried
/ABCD/externalURL.aspx?url=http://www.rathergood.com/moon_song/ and
still get the same error.

Is there a way for me to reference an external url without having to
hardcode it into my page?

Thanks,
Happy Wednesday,
Robert

Jan 26 '06 #2

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

Similar topics

2
by: David Dorward | last post by:
I'm attempting to read an XHTML 1.1 file, perform some DOM manipulation, then write the results to a different file. I've found myself rather stuck at the first hurdle. I have the following: ...
1
by: chris.rust | last post by:
Has anyone else had any trouble setting up a sitemap view to be filtered by roles? We've put a cust role provider in place, and we can verify that it's only being called once for each...
1
by: clickon | last post by:
I have a navigation a quite complex navigation structure and i want to have more than one way to navigate to the same page. It is a portal for a manufacturing company, one of the areas of the...
7
by: JJ | last post by:
I'm playing aournd with my first asp.net 2.0 web site and looking at the Web.sitemap file. It seems there's a lot of publicity at the moment about Google's sitemaps and how they are supposed to...
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...
4
by: shapper | last post by:
Hello, I have 2 questions about Asp.Net 2.0 web.sitemap: 1. Where can I find the list of all siteMapNode attributes? I looked eveywhere and couldn't find it. 2. I created a Web.sitemap...
4
by: shapper | last post by:
Hello, I am trying to convert an Asp.Net 2.0 XML sitemap file to a Google's sitemap file. I am posting the formats of both files. 1. How can I do the conversion? 2. And can I use an...
1
by: shapper | last post by:
Hello, I have a XMl file with the following format: <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode>...
0
by: Chris | last post by:
Hi, i have a problem with the visibility of my sitemap. There is one role defined: "manager" There are two users: 'user1' (member of role manager) and 'user2' (not member). The login.aspx...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
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...

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.