473,396 Members | 1,799 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,396 software developers and data experts.

What has the page attribute StyleSheetTheme to do with CSS, CascadingStyleSheets?

I am studying a bit and I have encountered some reading stuff about skin
files, css files and themes in asp.net.

To me the name of the StyleSheetTheme page attribute has little a no
connection with CSS files, StyleSheets. It's a level of precedence lower
then the page attribute 'Theme'. Both attributes refer to the name of a
Theme folder that contains skins and css files. But 'StyleSheetTheme' could
iqually be named something like 'DefaultTheme' or 'GeneralTheme'.

Or am I missing something here?

Nov 10 '08 #1
2 3289
AFIC there are some real lame-os working at Microsoft that just don't things
through very well and come up with confusing names. There are two types of
themes: Theme and StyleSheetTheme.

// Theme
When the page is loaded all css styles are bound to their respective
elements in the DOM. The styles in the Theme including any skins are applied
which can and will over-write any other css. All attempts to write a
stylesheet declaration into the head will always be followed by the Theme.

// StyleSheetTheme
When the page is loaded the styles in the StyleSheetTheme and the skin will
be bound to their respective elements in the DOM and css may then be used to
over-ride which is the opposite of the way the Theme works.

Recalling from memory I think I got it right but note its not documented
very as I also recall; a pithy statement in one page at MSDN and that's
that.

And finally no, in the Page directive I'm quite certain the explicit term
StyleSheetTheme must be used.

"Marc" <no*****@chello.nlwrote in message
news:OQ*************@TK2MSFTNGP06.phx.gbl...
>I am studying a bit and I have encountered some reading stuff about skin
files, css files and themes in asp.net.

To me the name of the StyleSheetTheme page attribute has little a no
connection with CSS files, StyleSheets. It's a level of precedence lower
then the page attribute 'Theme'. Both attributes refer to the name of a
Theme folder that contains skins and css files. But 'StyleSheetTheme'
could iqually be named something like 'DefaultTheme' or 'GeneralTheme'.

Or am I missing something here?
Nov 10 '08 #2
you override StyleSheetTheme when you you want a default theme applied before
the selected theme. StyleSheetTheme links are generated at the start of the
<head>, theme stylesheets are generated at the end of the <head>

-- bruce (sqlwork.com)
"Marc" wrote:
I am studying a bit and I have encountered some reading stuff about skin
files, css files and themes in asp.net.

To me the name of the StyleSheetTheme page attribute has little a no
connection with CSS files, StyleSheets. It's a level of precedence lower
then the page attribute 'Theme'. Both attributes refer to the name of a
Theme folder that contains skins and css files. But 'StyleSheetTheme' could
iqually be named something like 'DefaultTheme' or 'GeneralTheme'.

Or am I missing something here?

Nov 10 '08 #3

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

Similar topics

6
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute...
5
by: kevin goff | last post by:
I am seeing that our CPU spikes for several minutes at 100% for the asp.net process. This happens several times a day and seems to last for 10 min or so and use a lot of memory. I'm trying to...
2
by: HockeyFan | last post by:
in base base class of a codebehind, how can I tell what page it is? I'd like to know what page it is, so that I can redirect to a particular page, get some information from the user, and then...
1
by: jobs | last post by:
Is there a way or an attribute I can set so that the selected page number in paging is a different color or is underlined? perhaps it's my skin or css, but In my gridviews I can't tell what page we...
0
by: RayK50 | last post by:
Using VB.NET 2.0 and a master page, how can I determine what page is currently loaded in a specific content placeholder? Assuming Page1.aspx, Page2.aspx, and Page3.aspx each are defined with...
6
by: Sunfire | last post by:
Is there a way you can test what page is loaded from inside a master page? What I need to do is test to see what page is loaded inside the master page and then gray out the root item linked to that...
7
by: AAaron123 | last post by:
I'd like to know the page that sent me to the page being displayed. I suppose I could update a session variable in each page, after I use the value from the previous page, but that seems crude. ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
agi2029
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,...

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.