468,505 Members | 1,542 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

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.master 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 1071
Use an IFrame ? and set the source to your remote page ?

--
Best Regards

The Inimitable Mr Newbie
"Jonas" <Jo***@discussions.microsoft.com> wrote in message
news:DD**********************************@microsof t.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.master 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.master 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***@discussions.microsoft.com> wrote in message
news:DD**********************************@microsof t.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.master 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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by iturner100 | last post: by
3 posts views Thread by Ily | last post: by
reply views Thread by markric | last post: by
6 posts views Thread by =?Utf-8?B?U3RlcGhlbiBIYXRmaWVsZA==?= | last post: by
8 posts views Thread by Mort Strom | last post: by
8 posts views Thread by =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.