CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/14/2008 6:32:24 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
hassanien510@ho
Asp.Net User
Sitemap for child project1/14/2008 6:32:24 PM

0/0

Hi all,

I am trying to create a web.sitemap file in a child project and have links to the parent project that has a different web.sitemap, however I can't see the links if I link to the parent project like this:


<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
  <siteMapNode url="x.aspx" title="Root"  description="">
    <siteMapNode url="../default.aspx" title="Parent Home" CssClass="MainItemBlue"  CssClassExpanded="MainItem">
    </siteMapNode>

Thank you,

Shehab Hassanien

Rinze
Asp.Net User
Re: Sitemap for child project1/14/2008 9:11:02 PM

0/0

Where exactly can't you see the links? Can you explain what you are trying to do?

By default the '../default.aspx' url is not going to work. use / or ~/to refer to the root of you site. Futhermore, I think this is usually done the other way around.

In the parent project, you have a sitemap. One node (and path) contains your child project. For this node, you add the siteMapFile attribute to the node to tell the parent where the sitemap file for this node (child project) is located.


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
hassanien510@ho
Asp.Net User
Re: Sitemap for child project1/14/2008 9:46:35 PM

0/0

Hello Rinze,

 I have a radmenu that should show the links I am writing in the sitemap, I tried ../ and it is not working as you mentioned, when I try ~/default.aspx, it give me a duplicated url error; I think because the parent project has that same url in its sitemap:

 Ok, so I have the parent project has a web.sitemap, one of the links is going to a child project which has another web.sitemap. however both should have the link to default page in the parent project, so the one sitemap in the parent project is:

 <siteMapNode url="default.aspx" title="PIN Home" CssClass="MainItemBlue" CssClassExpanded="MainItemBlueOver" roles="piniiwebaccess" group="Home"></siteMapNode>

and it works fine.

Now the one in the sitemap inside the child project is:

<siteMapNode url="../default.aspx" title="PIN Home" CssClass="MainItemBlue" CssClassExpanded="MainItemBlueOver"></siteMapNode>

and it doesn't work as you said so I changed it to ~/default.aspx and that give me the url duplicated error

 Thank you,

Shehab

 

 

Rinze
Asp.Net User
Re: Sitemap for child project1/15/2008 4:16:44 PM

0/0

I don't think there are any elegant ways around this problem. .Net uses the url to find the currentnode and it demands the url to be unique for this reason You can overcome the duplicate url problem adding a querystring to one of the nodes in the duplicate (like default.aspx?).

This will get it to work. In addition, you could use the OnMenuItemDatabound event to strip the questring from the menu again.

 


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
Amanda Wang - M
Asp.Net User
Re: Sitemap for child project1/16/2008 7:35:39 AM

0/0

HIi,

I am trying to create a web.sitemap file in a child project and have links to the parent project that has a different web.sitemap

If you use url="~/default.aspx" or url="../default.aspx", it will only find the page in the current application, viz. the chils project.

If you want to refer the other project's page in the sitemap, you only can use the absolute path of the page.

For example:

<siteMapNode url=http://www.yahoo.com title="Home" ></siteMapNode>

hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
hassanien510@ho
Asp.Net User
Re: Sitemap for child project1/16/2008 1:01:12 PM

0/0

Hi Amanda,

Thank you for respond. Actually, I got it to work with ../default to point to the upper level project.

Thanks

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


Free Download:

Books:
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Piedras Negras archaelogy, 1931-1939 Authors: Linton Satterthwaite, Mary Butler, John Alden Mason, John M. Weeks, Jane Hill, Charles W. Golden, Pages: 425, Published: -1
Handbook of Child Psychology: Theoretical models of human development / volume editor, Richard M. Lerner vol. 2 : Cognition, perception, and language / volume editors, Deanna Kuhn and Robert Siegler vol. 3 : Social, emotional, and personality development / volume editor, Nancy Eisenberg vol. 4 : Child psychology in practice / volume editors, K. Ann Renninger and Irving E. Sigel Authors: William Damon, Richard M. Lerner, Pages: 1250, Published: 2006
The Truth Behind the Mommy Wars: Who Decides what Makes a Good Mother? Authors: Miriam Peskowitz, Pages: 243, Published: 2005
Modern Project Management Techniques for the Environmental Remediation Industry Authors: Timothy J. Havranek, Pages: 456, Published: 1999
Children, Health, and Learning: A Guide to the Issues Authors: Mary Elizabeth Walsh, Jennifer A. Murphy, Pages: 305, Published: 2003

Web:
Sitemap for child project - ASP.NET Forums I am trying to create a web.sitemap file in a child project and have links to the parent project that has a different web.sitemap, ...
The GOD'S CHILD Project - South Central The goal of The GOD'S CHILD Project is to "Break the Bitter Chains of Poverty through ... Read what ABC Primetime has to say about The GOD'S CHILD Project ...
one laptop per child project Resources | TechRepublic I'm sure many of you will remember the One Laptop Per Child project OLPC. .... OLPC is an ambitious project to bring computers to children in developing ...
CHILD Project: Publications and Presentations CHILD Project. Carefair: Rethinking the Responsibilities and Rights of Citizenship .... "Safe Spaces and Early Childhood Development: The Child Project " ...
Service-Learning Syllabi: The Community Child Project: An ... This is a team project supported by members of the "Community Child" Advisory ... The Community Child Project is a creative arts intervention project that ...
Jamendo : Dj Spooky's contribution for the 'One Laptop Per Child ... Oct 12, 2007 ... Paul D. Miller aka Dj Spooky - Dj Spooky's contribution for the 'One Laptop. Dj Spooky's contribution for the 'One Laptop Per Child Project' ...
Health-e-Child - Project of the Month — health-e-child HeC has been selected as eHealth Project of the month - March 2007 http://www. ehealthnews.eu/content/view/507/27/. Download. (2007health-e-child-pom-.pdf ...
Ancient China (In the Hands of a Child: Project Pack Continent ... Browse Ancient China (In the Hands of a Child: Project Pack Continent Study) reviews and ratings at MSN Shopping or submit your own rating and review to ...
one laptop per child project Resources | BNET May 23--The much-talked about 'One Laptop Per Child' project OLPC has sparked .... The project aims to give poor children around the world access to laptops ...
Healthy Children Project - Site Map Healthy Children Project ... A project of the Learning Disabilities Association of America Funded in part by the John Merck Fund ...




Search This Site:










upgrade from 3.0.13 to 3.1.1 doesn't work properly

tttgallery installation tutorial

redirect www.mydomain.com to dotnetnuke

user registration problem

dnn 3.1.1 web.config file missing (first timer)

css questions

no admin/host menu access in dnn

how to add the dotnetnuke gallery

dnn on intranet

comming home

question concerning module administration

stays on home page

how can i move child portals to a new subdirectory and use a differen alias?

help me!dnn and oracle

the exception when pages change?

sql server does not exist or access denied

the host name could not be parsed

can donetnuke install on winxp pro?

registrar new user problem

sql 2005 and asp 2.0

language pack install fails: no rights on file system

error on upgrade 3.0.13 to 3.1

just installed - 3.0.13 - now getting javascript errors

help with register module

change size of pane's

add language unreadable..

great idea for a candid camera skit -- frustrate the poor programmer to tears...

dnn4 install, initial start with an error!!! can someone help?

french accent in skin xml file + submit icon

skining problem

  Privacy | Contact Us
All Times Are GMT