Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2006, 10:51 AM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Default with pages in a subdir sitemappath and treeview d

Ok, so this is probably an easy question, but I'm not finding an answer to it.

I have a Web.sitemap in my root directory. I have a couple of different master pages in the root directory. I have pages in a subdirectory named "pages". I have a TreeView and a SiteMapPath on one of the master pages.

Oddly, even though the master page is in the root, with the Web.sitemap also in the root, when the sitemappath and treeview just dont show up on the page. They do show up on pages that are in the root directory.

Now I do understand that you have to write master page code so that it was if it were in the directory with the page. So I put full paths on html objects like "/myapplication/images/whatever.gif" and on web controls I put "~/images/whatever.gif". Those all work fine now.

THere is something about web.sitemap, sitemappath and treeview I am missing. If anybody knows I would be very appreciate!

Neil

Neil Timmerman
Programmer II
School of Medicine
University of Missouri Columbia
 
Old June 15th, 2006, 11:10 AM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I got it working. I found the answer in this forum. Someone else had the same problem. i would delete my post but I wanted to say additionally that I think it's kind of odd how it wouldn't at least display even if the link isn't correct.

For example, in my web.sitemap I have:

<siteMapNode url="~/pages/Forensic/forensic.aspx" title="Forensics" description="">

and that is what works. However before I had:

<siteMapNode url="/pages/Forensic/forensic.aspx" title="Forensics" description="">

Now if thats the wrong link, fine, I would think it would still DISPLAY the control and then when you clicked on it it would give you a 404 Page Not Found. Why on earth would it just not display at all???

Interestingly, elsewhere on the web.sitemap you can make siteMapNodes to pages that dont even exist and that wont stop your treeviews or your sitemapmath controls from displaying.

Does anyone but me think this is just odd??



Neil Timmerman
Programmer II
School of Medicine
University of Missouri Columbia





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create SiteMapPath in PHP? firblazer PHP How-To 0 July 14th, 2008 09:33 PM
Master Pages, Content Pages and CSS carliviris Visual Studio 2005 0 January 8th, 2008 05:56 PM
SiteMapPath Control Question lcsgeek BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 6 February 7th, 2006 06:18 PM
Web pages constructing: I-mode(mobile) pages karib Dreamweaver (all versions) 3 June 6th, 2004 09:48 AM
Treeview shiju ADO.NET 0 August 22nd, 2003 10:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.