473,569 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1972
"Stephen Hatfield" <St************ *@discussions.m icrosoft.comwro te in
message news:3B******** *************** ***********@mic rosoft.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.m icrosoft.comwro te in
message news:3B******** *************** ***********@mic rosoft.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. ContentPlaceHol der is defined in the Maste PAge. You MasterPAge Login
controls are not living inside the ContentPlaceHol der
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.m icrosoft.comwro te in
message news:3B******** *************** ***********@mic rosoft.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) ContenPlaceHold er is defined in both master pages and no controls on
either page reside in the ContentPlaceHol der
(2) Proper content is in the ContentPlaceHol der 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. ContentPlaceHol der is defined in the Maste PAge. You MasterPAge Login
controls are not living inside the ContentPlaceHol der
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.m icrosoft.comwro te in
message news:3B******** *************** ***********@mic rosoft.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
ContentPlacehol der 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
ContentPlacehol der 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
1609
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 could not actually deside on weather to go with the template approach(http://forums.asp.net/ShowPost.aspx?PageIndex=6&PostID=4692#66176) or with The masterpages...
3
1223
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 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...
0
931
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 c:\host\members\myname\site1, another in c:\host\members\myname\site2, etc. Basically, each site is in its own subdirectory. My websites use masterpages. The problem I am having is with the following line:...
3
1774
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 the database (only a couple of people will be posting and editing news articles). I use masterpages so it needs to be able to publish content in the ContentPlaceholder server controls.
2
2456
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.
3
1504
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 but I find it difficult to recreate forms in designmode since the pages gets very cluttered (controls on top of each other, stylesheet from theme not applied). The forms use both layers with...
5
4307
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)
0
2251
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 master page with only a sitemappath object in it, the file of map of the site, the web.config and another page to do tests.
8
11771
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...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8118
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...
1
7666
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...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
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
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.