472,353 Members | 1,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Two masterpages in one application problem

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 pages never display the images or the
styles while the main masterpages always displays everything correctly.

Suggestions for solving would be much appreciated!!

Thank you,
Stephen
Feb 23 '07 #1
6 1862
"Stephen Hatfield" <St*************@discussions.microsoft.comwrote in
message news:3B**********************************@microsof t.com...
Suggestions for solving would be much appreciated!!
Are both MasterPages in the same folder or, at least, at the same folder
depth...?
Feb 23 '07 #2
Sorry. Yes, both masterpages and all pages for the application are at the
root level of the application. The stylesheet is there as well.

Stephen

"Mark Rae" wrote:
"Stephen Hatfield" <St*************@discussions.microsoft.comwrote in
message news:3B**********************************@microsof t.com...
Suggestions for solving would be much appreciated!!

Are both MasterPages in the same folder or, at least, at the same folder
depth...?
Feb 23 '07 #3
Please check whether the following things are proper
1. ContentPlaceHolder is defined in the Maste PAge. You MasterPAge Login
controls are not living inside the ContentPlaceHolder
2. Content controls is defined in the LoginPage. Please made sure that you
have proper content pertaining to LoginPage in the ContentControl
3. Are you dynamically switching between MasterPAges during PreRender events ?

--
Thanks & Regards,
Sundar Narasiman
"Stephen Hatfield" wrote:
Sorry. Yes, both masterpages and all pages for the application are at the
root level of the application. The stylesheet is there as well.

Stephen

"Mark Rae" wrote:
"Stephen Hatfield" <St*************@discussions.microsoft.comwrote in
message news:3B**********************************@microsof t.com...
Suggestions for solving would be much appreciated!!
Are both MasterPages in the same folder or, at least, at the same folder
depth...?

Feb 23 '07 #4
Answers:
(1) ContenPlaceHolder is defined in both master pages and no controls on
either page reside in the ContentPlaceHolder
(2) Proper content is in the ContentPlaceHolder on Login page
(3) No, I am not switching dynamically between master pages within the
PreRender event. An appropriately authenticated login redirects to the main
application page.

Thanks!!
Stephen

"Sundar Narasiman" wrote:
Please check whether the following things are proper
1. ContentPlaceHolder is defined in the Maste PAge. You MasterPAge Login
controls are not living inside the ContentPlaceHolder
2. Content controls is defined in the LoginPage. Please made sure that you
have proper content pertaining to LoginPage in the ContentControl
3. Are you dynamically switching between MasterPAges during PreRender events ?

--
Thanks & Regards,
Sundar Narasiman
"Stephen Hatfield" wrote:
Sorry. Yes, both masterpages and all pages for the application are at the
root level of the application. The stylesheet is there as well.

Stephen

"Mark Rae" wrote:
"Stephen Hatfield" <St*************@discussions.microsoft.comwrote in
message news:3B**********************************@microsof t.com...
>
Suggestions for solving would be much appreciated!!
>
Are both MasterPages in the same folder or, at least, at the same folder
depth...?
>
>
>
Feb 23 '07 #5
You could try using just the one MasterPage, and instead, just put a blank
ContentPlaceholder with the appropriate Id to "nullify" the Login control(s).
Otherwise, haven't a clue, from reading the thread.
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Stephen Hatfield" wrote:
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 pages never display the images or the
styles while the main masterpages always displays everything correctly.

Suggestions for solving would be much appreciated!!

Thank you,
Stephen
Feb 23 '07 #6
Peter-

Thanks for your suggestion. It worked perfectly. I am still trying (in all
my spare time) to figure out why having two MasterPages is a problem.

Cheers!
Stephen

"Peter Bromberg [C# MVP]" wrote:
You could try using just the one MasterPage, and instead, just put a blank
ContentPlaceholder with the appropriate Id to "nullify" the Login control(s).
Otherwise, haven't a clue, from reading the thread.
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Stephen Hatfield" wrote:
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 pages never display the images or the
styles while the main masterpages always displays everything correctly.

Suggestions for solving would be much appreciated!!

Thank you,
Stephen
Feb 27 '07 #7

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

Similar topics

1
by: nLella | last post by:
I am trying to build a new web application and trying to implement either templates or master pages in it. I tried to read several articles but...
3
by: Jonas | last post by:
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...
0
by: rob | last post by:
I have a hosting account where my main path is c:\host\members\myname. On this account I have multiple independent sites. One site is in...
3
by: Lars W. Andersen | last post by:
Hi, I am looking for a good - easy to comprehend little CMS application for my "beginners" asp.net 2.0 site. It must be able to use Access as...
2
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...
3
by: Markus Rytterkull | last post by:
I'm porting an application from asp to asp.net2.0 and thought this would be a good time to test masterpages and themes. The end result is fine...
5
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...
0
by: Sergio E. | last post by:
Hello, I have a problem with masterpages and forms security. I made a new Web site, in which I have my page of login like of beginning, a...
8
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...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.