473,387 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CSS Woes

Hi,

I'm new with ASP.NET 2 so please bear with me. I created a website with VS
2005 and enabled master pages and themes like this in WebConfig:

<pages masterPageFile="~/Template.master" theme="DefaultTheme" />

For several days I could edit the CSS file to format Template.master and
then all of a sudden, it quit and no matter what I do, the template uses the
settings in the CSS file as they existed two days ago. Even if I delete all
text in the CSS file, the settings still persist and are applied to the
Template. If I remove the reference to the theme, then the settings are gone
and the Template looses its formatting. I tried adding a reference to the
CSS file in the header of the Template page but that was no good either.

Please help. Thanks.

Steve



Aug 31 '06 #1
5 888
// The .css file must be in the same folder as the Theme...

App_Themes <folder>
DefaultTheme <folder>
DefaultTheme.css

// The simple declaration of the Theme manages accessing and applying the
styles declared in the .css file.
<pages ... theme="DefaultTheme" />

// You can indeed test the Theme and the CSS stylesheet by removing the
theme attribute of the web.config pages section. Then declare the them is
each content page

<%@ Page
Language="C#"
CodeFile="..."
Inherits="..."
MasterPageFile="~/Masters/DefaultMaster.master"
Theme="DefaultTheme" %>

That's it. If you continue to "lose" state of the page display's style you
could be victimized by Visual Studio and/or ASP.NET bugs. There's quite a
number of performance and stability issues that persist. For me it was
really really bad on a previous machine that had Beta 2 installed before
installing RTM 2.0.
So what I learned is where to go to delete the cached build which exists
at...

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\<projectName>

Deleting that and then selecting rebuild from the Visual Studio menu clears
the cache of the compiled page class(es) which is how ASP.NET lays it claim
to fame to run fast once the intial compile has been performed. The SNAFU is
Windows puts file locks on the <projectNamedirectory and resources so a
reboot is often neccessary before Windows will allow us to delete the
<projectNamedirectory and contents.

Before doing that though I got into the habit of first rebuilding and then
tryhing to View in Browser before trying to delete any cache noting I
haven't been compelled to do so after rebuilding a new disk that never had
Beta 2 installed. As they say, your performance may vary...and that's all I
know what to say for now.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
"Uriah Piddle" <st*************@msn.comwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
Hi,

I'm new with ASP.NET 2 so please bear with me. I created a website with VS
2005 and enabled master pages and themes like this in WebConfig:

<pages masterPageFile="~/Template.master" theme="DefaultTheme" />

For several days I could edit the CSS file to format Template.master and
then all of a sudden, it quit and no matter what I do, the template uses
the settings in the CSS file as they existed two days ago. Even if I
delete all text in the CSS file, the settings still persist and are
applied to the Template. If I remove the reference to the theme, then the
settings are gone and the Template looses its formatting. I tried adding a
reference to the CSS file in the header of the Template page but that was
no good either.

Please help. Thanks.

Steve



Aug 31 '06 #2
Look in the theme directory and see if you have an OLD CSS file there. When
you are using theming, the CSS comes from the theme folder. if you think it
through, it makes perfect sense, as each theme will have a separate CSS
file. If you are linking to a CSS outside of the theme, or have edited a CSS
for another theme, you will not see the changes.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Uriah Piddle" <st*************@msn.comwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
Hi,

I'm new with ASP.NET 2 so please bear with me. I created a website with VS
2005 and enabled master pages and themes like this in WebConfig:

<pages masterPageFile="~/Template.master" theme="DefaultTheme" />

For several days I could edit the CSS file to format Template.master and
then all of a sudden, it quit and no matter what I do, the template uses
the settings in the CSS file as they existed two days ago. Even if I
delete all text in the CSS file, the settings still persist and are
applied to the Template. If I remove the reference to the theme, then the
settings are gone and the Template looses its formatting. I tried adding a
reference to the CSS file in the header of the Template page but that was
no good either.

Please help. Thanks.

Steve



Aug 31 '06 #3
Thanks guys. Clinton, I did a rebuild and it worked as you said. Thanks.

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:e6**************@TK2MSFTNGP04.phx.gbl...
Look in the theme directory and see if you have an OLD CSS file there.
When you are using theming, the CSS comes from the theme folder. if you
think it through, it makes perfect sense, as each theme will have a
separate CSS file. If you are linking to a CSS outside of the theme, or
have edited a CSS for another theme, you will not see the changes.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Uriah Piddle" <st*************@msn.comwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
>Hi,

I'm new with ASP.NET 2 so please bear with me. I created a website with
VS 2005 and enabled master pages and themes like this in WebConfig:

<pages masterPageFile="~/Template.master" theme="DefaultTheme" />

For several days I could edit the CSS file to format Template.master and
then all of a sudden, it quit and no matter what I do, the template uses
the settings in the CSS file as they existed two days ago. Even if I
delete all text in the CSS file, the settings still persist and are
applied to the Template. If I remove the reference to the theme, then the
settings are gone and the Template looses its formatting. I tried adding
a reference to the CSS file in the header of the Template page but that
was no good either.

Please help. Thanks.

Steve




Aug 31 '06 #4
Good news...

<%= Clinton
"Uriah Piddle" <st*************@msn.comwrote in message
news:eA**************@TK2MSFTNGP06.phx.gbl...
Thanks guys. Clinton, I did a rebuild and it worked as you said. Thanks.

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:e6**************@TK2MSFTNGP04.phx.gbl...
>Look in the theme directory and see if you have an OLD CSS file there.
When you are using theming, the CSS comes from the theme folder. if you
think it through, it makes perfect sense, as each theme will have a
separate CSS file. If you are linking to a CSS outside of the theme, or
have edited a CSS for another theme, you will not see the changes.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*********************************************** **
Think outside of the box!
*********************************************** **
"Uriah Piddle" <st*************@msn.comwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
>>Hi,

I'm new with ASP.NET 2 so please bear with me. I created a website with
VS 2005 and enabled master pages and themes like this in WebConfig:

<pages masterPageFile="~/Template.master" theme="DefaultTheme" />

For several days I could edit the CSS file to format Template.master and
then all of a sudden, it quit and no matter what I do, the template uses
the settings in the CSS file as they existed two days ago. Even if I
delete all text in the CSS file, the settings still persist and are
applied to the Template. If I remove the reference to the theme, then
the settings are gone and the Template looses its formatting. I tried
adding a reference to the CSS file in the header of the Template page
but that was no good either.

Please help. Thanks.

Steve





Aug 31 '06 #5
I declared victory too soon. The Rebuild All thing fixed it for one try but,
after that, the website would still not reflect the changes I had made in
the CSS file. A guy in the Wrox forum fixed it for me: you hit the Refresh
button your browser. The browser (IE) is running off the cached files in the
Temporary Internet Files folder which do not reflect the chages unless they
are refreshed.


"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.comwro te in message
news:Oe**************@TK2MSFTNGP06.phx.gbl...
Good news...

<%= Clinton
"Uriah Piddle" <st*************@msn.comwrote in message
news:eA**************@TK2MSFTNGP06.phx.gbl...
>Thanks guys. Clinton, I did a rebuild and it worked as you said. Thanks.

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:e6**************@TK2MSFTNGP04.phx.gbl...
>>Look in the theme directory and see if you have an OLD CSS file there.
When you are using theming, the CSS comes from the theme folder. if you
think it through, it makes perfect sense, as each theme will have a
separate CSS file. If you are linking to a CSS outside of the theme, or
have edited a CSS for another theme, you will not see the changes.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************ *
Think outside of the box!
************************************************ *
"Uriah Piddle" <st*************@msn.comwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
Hi,

I'm new with ASP.NET 2 so please bear with me. I created a website with
VS 2005 and enabled master pages and themes like this in WebConfig:

<pages masterPageFile="~/Template.master" theme="DefaultTheme" />

For several days I could edit the CSS file to format Template.master
and then all of a sudden, it quit and no matter what I do, the template
uses the settings in the CSS file as they existed two days ago. Even if
I delete all text in the CSS file, the settings still persist and are
applied to the Template. If I remove the reference to the theme, then
the settings are gone and the Template looses its formatting. I tried
adding a reference to the CSS file in the header of the Template page
but that was no good either.

Please help. Thanks.

Steve





Sep 4 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Martin the Mac Addict | last post by:
Good evening to the skilled Ladies and Gentlemen of the PHP world. I am fairly new to all of this but learning quickly. I have run in to a need to remove blank lines from a form submission after...
7
by: Mark | last post by:
O, woe is me, to have seen what I have seen, see what I see! (That's Shakespeare for those who were wondering what I'm on about) I am "having fun" with cookies. And I wonder if I have...
0
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade...
3
by: Angel Cat | last post by:
Trying to get my jobs to send mail when job fails. Should be easy but it's giving me headache Had a whole slew of issues. Outlook is installed with a n outlook mail profile set up that can...
2
by: Andrew Thompson | last post by:
- NN 4.78 rendering woes, links at far left - I am trying to rework an old site, make it valid html and css, improving the x-browser and 'older browser' compatibility. My efforts so far, have...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
9
by: Mark Rae | last post by:
Hi, This time, I'm looking for a regular expression which says "the string must contain exactly seven or exactly eight digits" e.g. 123456 fails 1234567 passes 12345678 passes 123456789...
1
by: hdogg | last post by:
Scope Woes - IF statement nested in WHILE statement -PHP I have an array $actuals_sum. <?php while(conditions) { if($i == '24) {
4
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
I am at my witless end here, please help! I have an ASP.Net aspx web page, hosted on Windows Server 2003, that receives a query string with the path to an autocad drawing file selected from a...
1
by: Mike Howarth | last post by:
I've been having a few problems with connecting to SQL Server, initially I was using dblib however found some problems with returning text fields whereby all text fields were ignored and it bawked...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
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...

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.