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 6 1978
"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...?
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...?
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...?
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...?
>
>
>
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
approach(http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=385)
Can you please suggest me which one to use and why?
|
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 being outside the application
directory. Is there any way I could get around this, or is there any...
|
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:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true"...
|
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.
|
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.
| |
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
absolute positioning and styles (from stylesheet in themes).
Does everybody have the same problems with...
|
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)
|
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.
|
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 styles.
How do I programmatically apply styles in my MasterPage based on the
ContentPlaceHolder...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |