Click here to Skip to main content
11,490,003 members (65,070 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET menu
Hi everyone
I have a web project in VS.Net and C#. My web site has a ASP Menu and it uses a SiteMap File.
in My site map i have some address Like : Home,Gallery,About us and ...
but I want to add a Link in menu that refer to another web site for example:

<siteMapNode url="" title="WebSite2"/>

when i try to add this address i don't see "WebSite2" in menu.
And when i write this code (without "Http://") :

<siteMapNode url="" title="WebSite2"/>

i can see WebSite2 but when i click on it i go to this page:

Meanwhile, I Have to say I,ve used securityTrimmingEnabled="true" in web config because my web site has some different users like Admin,Student and ... and i don't want every one can see all url in menu.

How can i add a Web address in my menu that is not in my web site directory?
Posted 3-Mar-12 0:44am
SAKryukov at 3-Mar-12 15:45pm
Just a note: by definition and purpose, site map should present, on one pages, all other pages of the same site, in a structured manner. You don't need links to other sites there. You can reference other sites elsewhere, and it cannot be a problem. In this way, I consider this problem as somewhat artificial.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 600
1 Andy Lanng 233
2 OriginalGriff 208
3 Maciej Los 160
4 _duDE_ 141
0 Sergey Alexandrovich Kryukov 9,608
1 OriginalGriff 8,475
2 Sascha Lefèvre 3,419
3 Maciej Los 3,106
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 3 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100