CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/21/2006 3:39:39 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 10 Views: 50 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
11 Items, 1 Pages 1 |< << Go >> >|
suegooge
Asp.Net User
How to add external url into sitemap1/21/2006 3:39:39 AM

0/0

<siteMapNode title="Blog" url=http://www.yourwebsite.com />  won't work. I tied several different ways but no luck so far. It seems to me sitemap only recognize links within local server path.

Any help is appreciated!


Sue's edream - www.edream.org


jcasp
Asp.Net User
Re: How to add external url into sitemap1/21/2006 4:29:23 AM

0/0

A long shot, but could it be because you didn't put your link within quotes?  I'm sure you tried that, but I'm asking because I just tried it and it works (using http://www.amazon.com).  Try it yourself with the amazon link.  If it works, then it's the link you're using in your code that's at fault.
suegooge
Asp.Net User
Re: How to add external url into sitemap1/21/2006 1:25:31 PM

0/0

Yes I did put quote around it. Itdoesn't work without quote around it. if I clude "http://" then the menu disappear from the navigation bar. If I use www.yoursite.com only without "http://" the menu will show up but treat it as a local server link. For example, it will interpreter it as "/www.yoursite.com".

This is my code, I will appreciate someone tell me what I did wrong:

<?xml version="1.0" encoding="utf-8" ?>

<siteMap>

<siteMapNode title="Home" url="Default.aspx">

<siteMapNode title="About me" url="Resume.aspx" />

<siteMapNode title="Albums" url="Albums.aspx" >

<siteMapNode title="Photos" url="Photos.aspx" >

<siteMapNode title="Details" url="Details.aspx" />

</siteMapNode>

</siteMapNode>

<siteMapNode title="Blog" url="blog.edream.org" />

<siteMapNode title="Code Camp" url="CodeCamp.aspx" />

<siteMapNode title="SK Club" url="Links.aspx" />

<siteMapNode title="??" url="BlogCN.aspx"/>

<siteMapNode title="Manage" url="Admin/Albums.aspx" >

<siteMapNode title="Photos" url="Admin/Photos.aspx" >

<siteMapNode title="Details" url="Admin/Details.aspx" />

</siteMapNode>

</siteMapNode>

</siteMapNode>

</siteMap>


Sue's edream - www.edream.org


jcasp
Asp.Net User
Re: How to add external url into sitemap1/21/2006 6:29:58 PM

0/0

Your sitemap file is fine, once you change the url to "http://...".  I verified it by using what you privided.  The problem must be related to your navigation control using the sitemap file.  Can you post the code for it?
suegooge
Asp.Net User
Re: How to add external url into sitemap1/21/2006 6:38:35 PM

0/0

Jcasp, thanks for reply. here is the code in default.master. again, if I change the url to "http://...." the menu item will dispear, those don't have "http://" will still show up.

<asp:menu id="menua" runat="server"

datasourceid="SiteMapDataSource1"

cssclass="menua"

orientation="Horizontal"

maximumdynamicdisplaylevels="0"

skiplinktext=""

staticdisplaylevels="2" />

<asp:sitemapdatasource id="SiteMapDataSource1" runat="server" startingnodeoffset="0" />


Sue's edream - www.edream.org


jcasp
Asp.Net User
Re: How to add external url into sitemap1/21/2006 8:02:11 PM

0/0

Looks okay to me.  Not sure why it's not working for you.  You may want to review your web.config file to see if any security related settings might be causing this.  Also, if you have any code-behind that modifies your Menu control settings, check that as well.
suegooge
Asp.Net User
Re: How to add external url into sitemap1/21/2006 8:06:00 PM

0/0

How frustrating! Anyway thanks for all your help. I can walk around this issue by creating a local "link gateway" pass link information as querystring then use response.redirect point it to the right location. really not that big of deal.
Sue's edream - www.edream.org


jcasp
Asp.Net User
Re: How to add external url into sitemap1/21/2006 8:33:34 PM

0/0

See if following is related to the problem you're facing.  It could be that you've configured Security Trimming in your web.config and have forgotten about it.

http://fredrik.nsquared2.com/viewpost.aspx?PostID=271
suegooge
Asp.Net User
Re: How to add external url into sitemap1/22/2006 1:56:26 PM

0/0

jcasp, thank you so much for the suggestion. I checked my web.config file and set

securityTrimmingEnabled="false" (it was "true"). This take care of the "http://" problem. BUT, the admin menu show up which they are   not suppose to show up unless the admin login. I think I will play with it some more and see if there is solution to keep both "http://" and the admin menu invisible.

Thanks again for your patient and help!


Sue's edream - www.edream.org


jcasp
Asp.Net User
Re: How to add external url into sitemap1/22/2006 7:45:10 PM

0/0

It's good that you figure it out, at least a portion of it.  Let me know how you did with your other issue.  It may prove useful for me later.
HappyTalk
Asp.Net User
Re: How to add external url into sitemap3/31/2008 3:54:37 PM

0/0

I came up against this and worked out you need to add roles="*" in your web.sitemap file to any nodes with external urls, as by default security trimming removes any nodes with external urls.

eg:  <siteMapNode title="my menu item" url="http://www.microsoft.com/" roles="*" description="description"/>

You don't want to disable security trimming or then all users will see the full menu even if there are items they don't have access to.

11 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro Apache XML Authors: Poornachandra Sarang, Pages: 479, Published: 2006
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Web Design: The L Line, the Express Line to Learning Authors: Sue Jenkins, Pages: 547, Published: 2007
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
Dreamweaver MX 2004: The Complete Reference Authors: Ray West, Tom Muck, Pages: 958, Published: -1
Dreamweaver UltraDev 4: A Beginner's Guide Authors: Ray West, Tom Muck, Pages: 563, Published: 2001
How to Become Wealthy Selling Ebooks on the Internet Authors: Stacey Chillemi, Author Stacey Chillemi, Pages: 127, Published: 2007
Human-computer Interaction Authors: Alan Dix, Janet E. Finlay, Gregory D. Abowd, Russell Beale, Pages: 834, Published: 2004

Web:
How to add external url into sitemap - ASP.NET Forums Re: How to add external url into sitemap. 01-20-2006, 11:29 PM. Contact ... Re: How to add external url into sitemap. 01-21-2006, 8:25 AM ...
How to add an external link to sitemap when using security ... Installer Fails on Windws Server 2003 · How to set target of url in a sitemap provider · How to add an external link to sitemap when using security trimming ...
Adding external links in a review is not possible - LinuxQuestions ... Jul 15, 2008 ... Adding external links in a review is not possible. Issue Tools. When using the < url> tags in a review, the links are apended with "&" ...
JoeAudette.com - Using an External Link in a Custom Site Map Provider Now the other thing you need to do to avoid this error, is to set the Url for the node to an internal link before you add it to the nodes collection, ...
external links using a sitemap, 2.0 Is there a way for me to reference an external url without having to hardcode it into my page? Thanks, Happy Wednesday, Robert. fernandezr ...
The Real Blogger Status: Adding A Google Sitemap To Your Blog Into the box for "My Sitemap URL is:", type "atom.xml" (or ... a redirected custom (external) feed for public access), and hit Add General Web Sitemap. ...
VitezStudios | Add url to Favorites / Bookmarks | Window, External ... The following modified version of "Add to Favorites" javascript code works across ... addPanel(title, url,""); } else if( window.external ) { // IE Favorite ...
Add a Google Sitemap — Plone CMS: Open Source Content Management To do this, simply add the following line:. Sitemap: . The < sitemap_location> should be the complete URL to the Sitemap, ...
Human Ranked Directory Project - Submit URL / Suggest a Site If you dont have sitemap, please add a new one to your site. ... If you have not selected, please start here and navigate deep into the directory, ...
external links using a sitemap, 2.0 - .NET ASP 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, ...

Videos:
Affiliate Summit 2006 East -- Straight Talk on Search Engine Optimization Brief presentation on Search Engine Optimization with a heavy focus on Q&A. A very open, honest and straight to the point discussion about search eng...




Search This Site:










classes in different files can't see each other.

installing dnn

current directory - curdir

base tag and vwb validation

making a usercontrol a class

gridview with stored procedure

[dnn2.0.3] calenderpro add/edit error

the page became a blank page after calling javascript in a code behind file

cs0029: cannot implicitly convert type 'string' to 'int'

web deployment question

how do i create an asp.net website template for new sites that use my masterpage?

search criteria

how to get windows login id from asp.net(i tried three methods which i got from google search,but it is of no use)

listbox with checkboxs preceeding each list item?

go back previous page in aspx.vb button

debugging question

asp.net 2.0 skin problem

user defined table out of whack

can't access simple objects

need help please

help when publishing website

ok you said i could ask anything

anyone implemented dnn securely in a production environment?

my err on server - please

parser error message: could not load type error

asp application not able to write file to back end file server

a page can have only 1 server form tag

asp.net wizard control problems.

different looks for multiple menu controls on same page?

custom modules and skin css

 
All Times Are GMT