I have a master page I want to use a CSS stylesheet for. I put the link tag
in the master page markup, like this <link href="Styles/MyStyle.css"
rel="stylesheet " type="text/css" />
It works fine in Visual Studio design view when I look at a content page
that uses the master page. However, when I run my web site app, the
stylesheet markup mysteriously disappears. Does anybody have any ideas? This
is kind of baffling.
Dec 3 '07
15 1221
To verify that your location entry is working, try typing the url to the CSS
file directly into your browser address bar. Do you get an error?
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:7E******** *************** ***********@mic rosoft.com...
>I have forms authentication but the web.config file has a location entry for
the css file that should make it accessible. I've played around with it
quite
a bit but no luck.
"Scott Roberts" wrote:
>Do you have security on the folders holding the CSS and/or Theme files?
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message news:15******* *************** ************@mi crosoft.com...
What is frustrating is that if I use themes and look at the source of
the
page I can see that the Styleheet is being inked in as it is supposed
to
be.
It just isn't doing anything.
"Scott Roberts" wrote:
Is the content page in a different folder than the master page? Try an absolute path in your css link. Or better yet, use Themes. "Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message news:D1******* *************** ************@mi crosoft.com... I have a master page I want to use a CSS stylesheet for. I put the link tag
in the master page markup, like this <link
href="Styles/MyStyle.css"
rel="stylesheet " type="text/css" />
It works fine in Visual Studio design view when I look at a content
page
that uses the master page. However, when I run my web site app, the
stylesheet markup mysteriously disappears. Does anybody have any
ideas?
This
is kind of baffling.
No. It directs me to the logon page. Once I have logged in, I can type the
url of the css into the browser address bar and it asks me if I want to save
it to my hard drive. As I said, it displays the css markup in design view,
but not at runtime.
On the other hand, skins do not show up at design time but do show up at run
time.
Pretty weird.
"Scott Roberts" wrote:
To verify that your location entry is working, try typing the url to the CSS
file directly into your browser address bar. Do you get an error?
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:7E******** *************** ***********@mic rosoft.com...
I have forms authentication but the web.config file has a location entry
for
the css file that should make it accessible. I've played around with it
quite
a bit but no luck.
"Scott Roberts" wrote:
Do you have security on the folders holding the CSS and/or Theme files?
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:15******** *************** ***********@mic rosoft.com...
What is frustrating is that if I use themes and look at the source of
the
page I can see that the Styleheet is being inked in as it is supposed
to
be.
It just isn't doing anything.
"Scott Roberts" wrote:
Is the content page in a different folder than the master page? Try an
absolute path in your css link. Or better yet, use Themes.
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:D1******** *************** ***********@mic rosoft.com...
I have a master page I want to use a CSS stylesheet for. I put the
link
tag
in the master page markup, like this <link
href="Styles/MyStyle.css"
rel="stylesheet " type="text/css" />
It works fine in Visual Studio design view when I look at a content
page
that uses the master page. However, when I run my web site app, the
stylesheet markup mysteriously disappears. Does anybody have any
ideas?
This
is kind of baffling.
Hi,
I have noticed many times that changes in my stylesheets are not immediately
effectuated at runtime...
Internet Explorer has cached a previous version of my stylesheet file then.
I have to manually delete cached files in Internet Explorer: Tools |
Internet Options, tabpage 'general', press 'delete...' in 'Browsing history'
and then press 'delete files...'
After that I press F5 and then my changes are effective.
Hope this helps,
Hans
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:55******** *************** ***********@mic rosoft.com...
Well it appears that I can get skins to work but CSS simply will not work
no
matter what I do. I am giving up on CSS and instead of defining things
like
tables in html, I am using asp, which is a ridiculous increase in server
load
but what else can I do? I want to use CSS to save time, but have already
wasted an entire bloody day on this and have to get on with the job.
Very, very frustrating. It is hard to imagine something more basic to web
development than CSS and to have this sort of problem is just not
acceptable.
"Rbrt" wrote:
>I have a master page I want to use a CSS stylesheet for. I put the link tag in the master page markup, like this <link href="Styles/MyStyle.css" rel="styleshee t" type="text/css" />
It works fine in Visual Studio design view when I look at a content page that uses the master page. However, when I run my web site app, the stylesheet markup mysteriously disappears. Does anybody have any ideas? This is kind of baffling.
Skins do work, but CSS does not. I am declaring the theme in the Content page
and have EnableTheming=t rue in both Master and Content pages. I did try
declaring it in the web.comfig and it made no difference.
CSS will work at design time only if I put a <link rel....declarat ion in
the Master Page. At run time, the markup disappears.
"David Wier" wrote:
What exactly do you mean, regarding themes, that they 'don't work'
When the Master page includes the exact correct theme, I have had no
problems using themes with CSS files.
Of course, I assign my theme in the Web.config file
David Wier http://aspnet101.com http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:DF******** *************** ***********@mic rosoft.com...
Both are in the same folder. I've tried to use themes. That doesn't work
either.
"Scott Roberts" wrote:
Is the content page in a different folder than the master page? Try an
absolute path in your css link. Or better yet, use Themes.
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:D1******** *************** ***********@mic rosoft.com...
I have a master page I want to use a CSS stylesheet for. I put the link
tag
in the master page markup, like this <link
href="Styles/MyStyle.css"
rel="stylesheet " type="text/css" />
It works fine in Visual Studio design view when I look at a content
page
that uses the master page. However, when I run my web site app, the
stylesheet markup mysteriously disappears. Does anybody have any ideas?
This
is kind of baffling.
Thank you very much for your suggestion. I tried it but it didn't help.
I will keep checking here to see if there are any other suggestions, and I
am grateful for the advice you have all given, but I have to move on with the
project. I am not going to waste any more time on CSS but will put the markup
in the Master pages directly. At least that will provide some level of
reusability and control.
Robert
"Hans Nieuwenhuis" wrote:
Hi,
I have noticed many times that changes in my stylesheets are not immediately
effectuated at runtime...
Internet Explorer has cached a previous version of my stylesheet file then.
I have to manually delete cached files in Internet Explorer: Tools |
Internet Options, tabpage 'general', press 'delete...' in 'Browsing history'
and then press 'delete files...'
After that I press F5 and then my changes are effective.
Hope this helps,
Hans
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:55******** *************** ***********@mic rosoft.com...
Well it appears that I can get skins to work but CSS simply will not work
no
matter what I do. I am giving up on CSS and instead of defining things
like
tables in html, I am using asp, which is a ridiculous increase in server
load
but what else can I do? I want to use CSS to save time, but have already
wasted an entire bloody day on this and have to get on with the job.
Very, very frustrating. It is hard to imagine something more basic to web
development than CSS and to have this sort of problem is just not
acceptable.
"Rbrt" wrote:
I have a master page I want to use a CSS stylesheet for. I put the link
tag
in the master page markup, like this <link href="Styles/MyStyle.css"
rel="stylesheet " type="text/css" />
It works fine in Visual Studio design view when I look at a content page
that uses the master page. However, when I run my web site app, the
stylesheet markup mysteriously disappears. Does anybody have any ideas?
This
is kind of baffling.
I can understand your frustration, but rest assured that CSS *does* work.
It's just not working for you. ;)
What I usually do when I have a particularly frustrating problem is try to
create a very simple project that exhibits the problem. You can then share
that simple project with the community and they can help you troubleshoot.
More often than not, I am *unable* to duplicate my problem in a new, simple
project - which means that I've got something whacked in my big, complicated
project. Then it's a matter of finding out "what's different".
Perhaps you could try that. Create a simple web project (no security or
anything) and see if your CSS file works. Assuming it does, keep adding
things to your sample until it breaks. Then share that project with us.
Scott
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message
news:C9******** *************** ***********@mic rosoft.com...
Skins do work, but CSS does not. I am declaring the theme in the Content
page
and have EnableTheming=t rue in both Master and Content pages. I did try
declaring it in the web.comfig and it made no difference.
CSS will work at design time only if I put a <link rel....declarat ion in
the Master Page. At run time, the markup disappears.
"David Wier" wrote:
>What exactly do you mean, regarding themes, that they 'don't work'
When the Master page includes the exact correct theme, I have had no problems using themes with CSS files. Of course, I assign my theme in the Web.config file
David Wier http://aspnet101.com http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no bloated markup
"Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message news:DF******* *************** ************@mi crosoft.com...
Both are in the same folder. I've tried to use themes. That doesn't
work
either.
"Scott Roberts" wrote:
Is the content page in a different folder than the master page? Try an absolute path in your css link. Or better yet, use Themes. "Rbrt" <Rb**@discussio ns.microsoft.co mwrote in message news:D1******* *************** ************@mi crosoft.com... I have a master page I want to use a CSS stylesheet for. I put the link tag
in the master page markup, like this <link
href="Styles/MyStyle.css"
rel="stylesheet " type="text/css" />
It works fine in Visual Studio design view when I look at a content
page
that uses the master page. However, when I run my web site app, the
stylesheet markup mysteriously disappears. Does anybody have any
ideas?
This
is kind of baffling.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Roger Walter |
last post by:
When using the MasterPages form Templating from ASP.NET
web Controls, and also using another templating process
that uses User Controls, I get a border around the entire
page when it is rendered to the browser. Do you know how
I can get rid of this. My template has a header, sides,
main body, and footer, and around all of this is this
border. Even in VS during design, I can not move the user
control or MasterPages Container into this...
|
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: clintonG |
last post by:
Does anybody know how to use a control such as the DropDownList to change
Themes when using MasterPages?
I'm also asking in the forum.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
|
by: Kenneth Keeley |
last post by:
Hi,
I have a Masterpage that controls the basic layout of the pages displayed
on a web site. The masterpage also uses some variables. I would like to be
able to access some of these variables from the content pages. Can this be
done and if so how. I have made the Varibles that I wish to access Public
Members.
Thanks for any help.
Kenneth
|
by: Jeff Lynch |
last post by:
I need to call a class on every web page in a site. In ASP.NET 1.1 I would
call this class before the Page_Load event in each web page's code-behind
file since it needs to run before the web page loads.
In ASP.NET 2.0 can I do the same thing by calling the class on the
MasterPage's code-behind before it's Page_Load and will this run before the
content page's Page_Load?
--
Jeff Lynch
| |
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: 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: =?Utf-8?B?U3RlcGhlbiBIYXRmaWVsZA==?= |
last post by:
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...
|
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: 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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |