Pages from master page saved in subfolder

Pages from master page saved in subfolder

Post by TGFycnkgU2 » Tue, 07 Aug 2007 23:52:06


I am trying to create new web pages from a master page and then save those
new pages in a subfolder under the root folder containing the original master
page. When I do that I get ASP errors when I try to view the site and use the
navigation hyperlinks. I can work around this by creating a new master page
in each subfolder and reconfiguring the hyperlinks, but this is a lot of
extra work.

Am I doing something wrong when I create the new pages? I have not had this
problem using DWT files in Dreamweaver in the past. The hyperlinks in the new
pages would automatically configure to know that the new page was in a
subfolder. Any help would be greatly appreciated.

Thanks,
Larry
 
 
 

Pages from master page saved in subfolder

Post by Gregory A. » Wed, 08 Aug 2007 00:21:36

How are you making links:

ASP.NET menu control
ASP.NET Hyperlink control
Normal hyperlink

If you are using one of the top two, get link relative to root and add ~ to
indicate root.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://www.yqcomputer.com/
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Larry Sleznikow" <Larry XXXX@XXXXX.COM > wrote in

 
 
 

Pages from master page saved in subfolder

Post by Cheryl D W » Wed, 08 Aug 2007 02:09:35

if you are using the third use / in front our absolute paths from there:

/products/page.aspx

not

../products/page.aspx or products/page.aspx

note these root relative links are not understood by Expression Web so
images using them will not render in design view but will resolve on the
web.

--
Cheryl D Wise
MS MVP FrontPage
http://www.yqcomputer.com/
Author: Foundations of Microsoft Expression Web: The Basics and Beyond


"Cowboy (Gregory A. Beamer)" < XXXX@XXXXX.COM > wrote in
 
 
 

Pages from master page saved in subfolder

Post by Gregory A. » Fri, 10 Aug 2007 02:53:33

And, if you are using ASP.NET controls, the ~ indicates root and can resolve
to either a virtual directory root or a website root, depending on which you
are using. That is why I asked the question of how he was doing it.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://www.yqcomputer.com/
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************