473,569 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple web-apps under one master page site?

Hi

I've just recently upgraded to VS2005 and started using/learning about the
Master Pages.

I'd like to know if it is possible to have separate web app projects use the
master page(s) from their "parent" site.

E.g.:
Main site at http://localhost/mainsite/
sub-app at http://localhost/subsite/

I'm considering using masterpages for our company website overhaul, so these
development locations would eventually map to the real locations of:
main site: http://www.myrealsite.com
sub-app: http://www.myrealsite.com/sub-app-name

(We host our site ourselves)

My reason for asking is motivated by the pre-compiled/site publishing
process of VS2005, which wants to delete any existing target files before
transferring the new versions. For a moderate or larger sized site this
would not be a desirable feature, even if it is quick in operation.

For example, I want to create a separate project/app that looks after a
specific requirement (say a questionairre, or quality feedback forms) that
uses the same master page(s) as the root site.

I guess I'm asking if it's possible to implement similar referential pathing
as I'm used to with stylesheets, etc (e.g. ../styles/global.css)? The
default pathing is app-specific (~/).

I've tried <%@ Page Language="VB" MasterPageFile= "../copeohs/copeohs.master"
....
but get the server error of "The virtual path '/copeohs/copeohs.master' maps
to another application, which is not allowed."

Also tried: MasterPageFile= "http://localhost/copeohs/copeohs.master"
but this returns "Parser Error Message:
'http://localhost/copeohs/copeohs.master' is not a valid virtual path." (The
path is correct but I assume this is IIS security preventing user-client
delivery of the master file.)

I don't want to use templates, as the idea is to have the masterpages hold
the menu content and thus greatly reduce maintenance requirements. I would
be using a root master for the global menu, plus nested master pages to
provide sub-section menus.

I've done some googling on the subject, but haven't (yet) come across anyone
discussing the particular aspect of separate projects sharing the master file.

Is it even possible - or am I barking up the wrong tree?

Appreciate any pointers to articles, etc, or specific methods.

Thanks.
Aug 1 '06 #1
2 6889
Take a look at this post by Omar Khan:
http://blogs.msdn.com/webdevtools/ar...01/652986.aspx

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alec MacLean" wrote:
Hi

I've just recently upgraded to VS2005 and started using/learning about the
Master Pages.

I'd like to know if it is possible to have separate web app projects use the
master page(s) from their "parent" site.

E.g.:
Main site at http://localhost/mainsite/
sub-app at http://localhost/subsite/

I'm considering using masterpages for our company website overhaul, so these
development locations would eventually map to the real locations of:
main site: http://www.myrealsite.com
sub-app: http://www.myrealsite.com/sub-app-name

(We host our site ourselves)

My reason for asking is motivated by the pre-compiled/site publishing
process of VS2005, which wants to delete any existing target files before
transferring the new versions. For a moderate or larger sized site this
would not be a desirable feature, even if it is quick in operation.

For example, I want to create a separate project/app that looks after a
specific requirement (say a questionairre, or quality feedback forms) that
uses the same master page(s) as the root site.

I guess I'm asking if it's possible to implement similar referential pathing
as I'm used to with stylesheets, etc (e.g. ../styles/global.css)? The
default pathing is app-specific (~/).

I've tried <%@ Page Language="VB" MasterPageFile= "../copeohs/copeohs.master"
...
but get the server error of "The virtual path '/copeohs/copeohs.master' maps
to another application, which is not allowed."

Also tried: MasterPageFile= "http://localhost/copeohs/copeohs.master"
but this returns "Parser Error Message:
'http://localhost/copeohs/copeohs.master' is not a valid virtual path." (The
path is correct but I assume this is IIS security preventing user-client
delivery of the master file.)

I don't want to use templates, as the idea is to have the masterpages hold
the menu content and thus greatly reduce maintenance requirements. I would
be using a root master for the global menu, plus nested master pages to
provide sub-section menus.

I've done some googling on the subject, but haven't (yet) come across anyone
discussing the particular aspect of separate projects sharing the master file.

Is it even possible - or am I barking up the wrong tree?

Appreciate any pointers to articles, etc, or specific methods.

Thanks.
Aug 1 '06 #2
Thanks Peter - that article has really helped.

Although parts 2 & 3 ar not yet writtne, it's provided enough background for
me to get the sub-site operating with the master pages held in the root
site, which is what I needed.

Thanks again.

Al
"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com wrote in message
news:E0******** *************** ***********@mic rosoft.com...
Take a look at this post by Omar Khan:
http://blogs.msdn.com/webdevtools/ar...01/652986.aspx

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alec MacLean" wrote:
>Hi

I've just recently upgraded to VS2005 and started using/learning about
the
Master Pages.

I'd like to know if it is possible to have separate web app projects use
the
master page(s) from their "parent" site.

E.g.:
Main site at http://localhost/mainsite/
sub-app at http://localhost/subsite/

I'm considering using masterpages for our company website overhaul, so
these
development locations would eventually map to the real locations of:
main site: http://www.myrealsite.com
sub-app: http://www.myrealsite.com/sub-app-name

(We host our site ourselves)

My reason for asking is motivated by the pre-compiled/site publishing
process of VS2005, which wants to delete any existing target files before
transferring the new versions. For a moderate or larger sized site this
would not be a desirable feature, even if it is quick in operation.

For example, I want to create a separate project/app that looks after a
specific requirement (say a questionairre, or quality feedback forms)
that
uses the same master page(s) as the root site.

I guess I'm asking if it's possible to implement similar referential
pathing
as I'm used to with stylesheets, etc (e.g. ../styles/global.css)? The
default pathing is app-specific (~/).

I've tried <%@ Page Language="VB"
MasterPageFile ="../copeohs/copeohs.master"
...
but get the server error of "The virtual path '/copeohs/copeohs.master'
maps
to another application, which is not allowed."

Also tried: MasterPageFile= "http://localhost/copeohs/copeohs.master"
but this returns "Parser Error Message:
'http://localhost/copeohs/copeohs.master' is not a valid virtual path."
(The
path is correct but I assume this is IIS security preventing user-client
delivery of the master file.)

I don't want to use templates, as the idea is to have the masterpages
hold
the menu content and thus greatly reduce maintenance requirements. I
would
be using a root master for the global menu, plus nested master pages to
provide sub-section menus.

I've done some googling on the subject, but haven't (yet) come across
anyone
discussing the particular aspect of separate projects sharing the master
file.

Is it even possible - or am I barking up the wrong tree?

Appreciate any pointers to articles, etc, or specific methods.

Thanks.

Aug 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2037
by: bill yeager | last post by:
Duray, it helps in regards to knowing how to get the items that were selected in the lisbox, but I'm going in reverse --- after I get the items from the db that were selected, I'd like to be able to highlight them in the listbox within the datagrid control......... Thanks, Bill... >-----Original Message-----
1
2813
by: Luther Miller | last post by:
I've created a web setup project that works great for installing an ASP.NET application to a virtual directory on a server. I'd like to be able to use the same setup program to install multiple instances - e.g., DEV, TEST, etc., as I see fit. However, when once instance has already been installed, the web setup project will not install...
9
23062
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated to a pool. If I assign only one application to a applicaton pool and have multiple worker processes assigned to that pool. Will my application be...
4
2964
by: tshad | last post by:
Can I set up multiple pages in the same Location tag? I thought I saw somewhere that I could. I tried the following, but it doesn't work. *************************************************** <configuration> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> <location...
2
2090
by: Tumurbaatar S. | last post by:
ASP.NET QuickStart Tutorial says that: .... ASP.NET maintains a pool of HttpApplication instances over the course of a Web application's lifetime. ASP.NET automatically assigns one of these instances to process each incoming HTTP request that is received by the application. The particular HttpApplication instance assigned is responsible for...
9
2761
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and wizards. But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication. Background I...
0
1213
by: Tiro | last post by:
Hi, I am trying to understand how does .Net Web Service handle requests for multiple clients simultaneously. Here is what I am trying to achieve. I have created a web serive that search database based on client request. Client submits query string. Issue: If I try to access web service from 2 clients simultaneously using
3
6481
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07162002.asp) but I don't want clients to have to add two web references and then manually have to edit the proxy classes....
0
1907
by: rbg | last post by:
Have a web application which uses Data Cache. I need to understand what happens when a new instance of the same web application is created for for serving concurrent clients. What happens when the data in the cache expires (either due to expiration or due to dependency change) do all instances of the Http Application replace the cached data...
2
1509
by: info.lowyeah | last post by:
Dear all, Can anybody tell me how to setup multiple web.config in 1 web application? many thanks Alan
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.