By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,652 Members | 1,466 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,652 IT Pros & Developers. It's quick & easy.

Master pages, how do you reference when outside of application?

P: n/a
I have a website that consists of numerous ASP.NET applications (each
referred to as a website in VS 2005) which I'd like to have share a master
page. My directory structure on the website is like this:
/Apps/App1, /Apps/App2, /Apps/Common, /Apps/App3, ...

So the path to any one of these apps can be referred to as
/Apps/App1/default.aspx and depending on if it's on our public site, dev
site, test site, or intranet site the correct URL will be formed .. ie,

I would like to locate my master page in the /Apps/Common/MasterPages
directory and was thinking I'd reference it like:
MasterPageFile="/Apps/Common/MasterPages/MasterPage.master" but that doesn't
work. I've tried using "../Common/MasterPages/MasterPage.master" and there's
a problem with that. I'd like to get some help on understanding the correct
way to reference the path to the master page file when it is outside the
current application.

So, my Page directive for /Apps/App1/default.aspx looks like this but it
doesn't work.

<%@ Page Language="C#"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

Thanks for any help ... john

Feb 7 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.