473,657 Members | 2,484 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Http Exception:
'http://www.rathergood. com/moon_song/' is not a valid virtual path.".

It is failing on the AddNode method of StaticSiteMapPr ovider. I've
even tried
/ABCD/externalURL.asp x?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 2413
I am having the same problem. I am using the SqlSiteMapProvi der class found
in the Feb 2006 MSDN Magazine. If I use the out-of-the-box
XmlSiteMapProvi der, I can use an external URL just fine. Looks like both
providers derive from StaticSiteMapPr ovider, and SqlSiteMapProvi der 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.Http Exception:
'http://www.rathergood. com/moon_song/' is not a valid virtual path.".

It is failing on the AddNode method of StaticSiteMapPr ovider. I've
even tried
/ABCD/externalURL.asp x?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
3521
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: from xml.dom.ext.reader import Sax2 reader = Sax2.Reader() f = open('dorward.me.uk/sitemap.html', 'r')
1
2003
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 connection, and is returning the correct roles, but... When we specify a role on the top sitemapnode that role seems to add to the roles on lower level nodes, so we end up needing to put roles="*" on the top node, but then regardless of which role we put...
1
3230
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 site is a raw materials management section, another is a packaging dept section. I want to group together all the raw materials pages in one section, but some of them apply specifically to the packing dept. so i also want the relevent pages in the...
7
1408
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 get your site more likely to be indexed. Do we therefore use Googles, the standard web.sitemap file, or both?? If anyone has used the Google version, is there any way of getting it to work with the TreeView and SiteMapPath controls?
2
1962
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 together in one top node, theres bound to be a way around this surely?? Any help much appreciated
4
5774
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 and somehowI am getting an error:
4
3276
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 .ashx Asp.Net file that when the .ashx file is
1
1182
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> <siteMapNode url = "~/Default.aspx"
0
2199
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 redirects to a page with a menu control associated to a SiteMapDataSource. I want to hide pg1 for all non-members of role manager (=user2).
0
8325
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
8844
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...
0
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
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
5643
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
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2743
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
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.