468,316 Members | 1,486 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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 1685
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jonas | last post: by
reply views Thread by rob | last post: by
3 posts views Thread by Lars W. Andersen | last post: by
2 posts views Thread by iturner100 | last post: by
3 posts views Thread by Markus Rytterkull | last post: by
reply views Thread by Sergio E. | last post: by
8 posts views Thread by Mort Strom | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.