Two masterpages in one application problem

G

Guest

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
 
G

Guest

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
 
G

Guest

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 ?
 
G

Guest

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
 
G

Guest

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top