473,763 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cross Application masterpages

I have a scenario where I would like to show contentpages from one asp.NET
application in a masterpage from another application. I've tried to do this
by putting one appilcation in a virtual directory below the other one, but
when I try to set the masterpagefile to ../MasterPage.mast er I get an error
message saying something about the master being outside the application
directory. Is there any way I could get around this, or is there any other
way I could use a masterpage from another application?
Nov 23 '05 #1
3 1234
Use an IFrame ? and set the source to your remote page ?

--
Best Regards

The Inimitable Mr Newbie º¿º
"Jonas" <Jo***@discussi ons.microsoft.c om> wrote in message
news:DD******** *************** ***********@mic rosoft.com...
I have a scenario where I would like to show contentpages from one asp.NET
application in a masterpage from another application. I've tried to do
this
by putting one appilcation in a virtual directory below the other one, but
when I try to set the masterpagefile to ../MasterPage.mast er I get an
error
message saying something about the master being outside the application
directory. Is there any way I could get around this, or is there any other
way I could use a masterpage from another application?

Nov 23 '05 #2
MasterPages are compiled just like ASPX pages and ASCX controls, thus they
need to reside under the application directory. You can do the virtual directory
trick as you said you've been doing.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have a scenario where I would like to show contentpages from one
asp.NET application in a masterpage from another application. I've
tried to do this by putting one appilcation in a virtual directory
below the other one, but when I try to set the masterpagefile to
../MasterPage.mast er I get an error message saying something about the
master being outside the application directory. Is there any way I
could get around this, or is there any other way I could use a
masterpage from another application?

Nov 23 '05 #3
Yeah that does the trick, don't know why I didn't think of it.
Thanks
//Jonas

"Mr Newbie" wrote:
Use an IFrame ? and set the source to your remote page ?

--
Best Regards

The Inimitable Mr Newbie º¿º
"Jonas" <Jo***@discussi ons.microsoft.c om> wrote in message
news:DD******** *************** ***********@mic rosoft.com...
I have a scenario where I would like to show contentpages from one asp.NET
application in a masterpage from another application. I've tried to do
this
by putting one appilcation in a virtual directory below the other one, but
when I try to set the masterpagefile to ../MasterPage.mast er I get an
error
message saying something about the master being outside the application
directory. Is there any way I could get around this, or is there any other
way I could use a masterpage from another application?


Nov 23 '05 #4

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

Similar topics

0
1071
by: John Holmes | last post by:
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...
2
2467
by: iturner100 | last post by:
Hi, I've been struggling with this one for a couple of hours without much joy. Basically, I've got a set of nested masterpages (3 as it happens). I'm dynamically generating a new page in code and want to be able to populate the ContentPlaceholders of the inner-most masterpage at run-time.
5
4319
by: Nick Wouters | last post by:
Dear All In Classic ASP I used CSS for ALL layout. Now in ASP.NET version 2 I am testing out Masterpages as they come in very handy. It seems like it is replacing CSS for layout but what is the best choise? 1) Using Masterpages with Themes (css / images / skins included in this theme)
7
4212
by: Edward | last post by:
Hi All, Would anyone know if there is an event similar to the Page_PreInit that I can code just once, at a global initialization level, that applies to all pages executed? Therefore, instead of placing the code below in every page codebehind, I could code it just once. Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
3
1963
by: Ily | last post by:
Hi I have two applications (both in asp.net 2.0). I want both to have a common company wide look and feel How can I do this using master pages? Also If new applications are added, I want them to have the company wide look and feel, but with the minimum of work? Is this 'do-able'?
0
1299
by: markric | last post by:
Good day, I have an ASP.NET application / website with the following type of structure: + wwwroot + company site + masterpages + product1 + product2
6
1979
by: =?Utf-8?B?U3RlcGhlbiBIYXRmaWVsZA==?= | last post by:
I have two masterpages in a web application. One is used for the login and logout pages. The other is used for all other pages in the application. The difference between the two masterpages is that on the main one I have a user control in the left side that has the site navigation menu while the login/logout masterpage has a non-breaking space in that table cell. Everything else is exactly the same. The issue is that the login/logout...
8
11792
by: Mort Strom | last post by:
Right now the header of my master page contains all of the CSS styles for all of the pages that might be loaded in my ContentPlaceHolder. The problem is that my <styletag is getting too large to manage. I have 300 lines of styles in my masterpage and I don't need all of this for every page -- somehow this can't be a smart way of managing styles. How do I programmatically apply styles in my MasterPage based on the ContentPlaceHolder...
8
2035
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go" onclick="btnSendAlert_Click" PostBackUrl="ItemUpLoadAdmin.aspx" CommandArgument="5" />
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10145
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9998
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7366
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.