473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How does my theme default.css get in my web page?

Hi;

It's there but I don't see anywhere that I actually tell my pages to include
default.css from my theme?

And how can I add a second css file from my theme to a specific page?

--
thanks - dave
david_at_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Dec 17 '06 #1
4 5870
As it turns out using Themes and stylesheets together is clunky. Any css
file located in an App_Themes directory will be parsed automatically. Noting
the same is true of subdirectorys of App_Themes which contain stylesheets we
can control the order those subdirectories and stylesheets will be parsed
using a goofy alphanumeric naming schema such as

App_Themes
1a_styles.css
1b_styles
2a_styles.css
....

To load a second style sheet for a specific page you'll have to try a goofy
workaround like locating the stylesheet in some other directory and then
writing the stylesheet into the page -- after -- the stylesheet(s) the Theme
writes into the page.

It sounds like you may have made the same mistake I did by using Themes
before learning the difference that can be managed when using a
StyleSheetTheme . I think using a StyleSheetTheme may be better than using
Themes. I think K. Scott Allen's blog [1] which I consider a must read
covers this well, especially for MasterPages

I'd certainly like to hear comments from those who have used both Themes and
a StyleSheetTheme on projects...

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h
[1] http://odetocode.com
"David Thielen" <th*****@nospam .nospamwrote in message
news:E2******** *************** ***********@mic rosoft.com...
Hi;

It's there but I don't see anywhere that I actually tell my pages to
include
default.css from my theme?

And how can I add a second css file from my theme to a specific page?

--
thanks - dave
david_at_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


Dec 18 '06 #2
Yuck. Ok, how can we hardcode 1 page to not use the theme at all and instead
to use a different css? That css does not have to be in the theme directory
although I would prefer it.

This is for our error.aspx page where we want as little as possible in it to
keep it simple and avoid issues with either code or security permissions.

--
thanks - dave
david_at_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"clintonG" wrote:
As it turns out using Themes and stylesheets together is clunky. Any css
file located in an App_Themes directory will be parsed automatically. Noting
the same is true of subdirectorys of App_Themes which contain stylesheets we
can control the order those subdirectories and stylesheets will be parsed
using a goofy alphanumeric naming schema such as

App_Themes
1a_styles.css
1b_styles
2a_styles.css
....

To load a second style sheet for a specific page you'll have to try a goofy
workaround like locating the stylesheet in some other directory and then
writing the stylesheet into the page -- after -- the stylesheet(s) the Theme
writes into the page.

It sounds like you may have made the same mistake I did by using Themes
before learning the difference that can be managed when using a
StyleSheetTheme . I think using a StyleSheetTheme may be better than using
Themes. I think K. Scott Allen's blog [1] which I consider a must read
covers this well, especially for MasterPages

I'd certainly like to hear comments from those who have used both Themes and
a StyleSheetTheme on projects...

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h
[1] http://odetocode.com
"David Thielen" <th*****@nospam .nospamwrote in message
news:E2******** *************** ***********@mic rosoft.com...
Hi;

It's there but I don't see anywhere that I actually tell my pages to
include
default.css from my theme?

And how can I add a second css file from my theme to a specific page?

--
thanks - dave
david_at_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


Dec 18 '06 #3
Hi Dave,

If you want a specific page to not use Theme, you can simply disable the
Theme on that page .e.g.

<%@ Page EnableTheming=" false" %>

Thus, any controls on the page will not apply any theme setting either.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 18 '06 #4
To add to Steven's comments I would also consider simplifying and using
simple HTML for the error page. Something simple for example like 404.htm
that allows simple embedded or linked style declarations. The problem with
Steven's solution is no Themes may be used in that page even if you develop
an alternate so you'll have to fall back to HTML and CSS anyway right?

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee. com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h
"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:e0******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Dave,

If you want a specific page to not use Theme, you can simply disable the
Theme on that page .e.g.

<%@ Page EnableTheming=" false" %>

Thus, any controls on the page will not apply any theme setting either.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.

Dec 18 '06 #5

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

Similar topics

0
3051
by: Chenghui Li | last post by:
We have a problem with the Windows XP theme: We have a IDE which allows other developers to develop visual programs for their customers. Our IDE allow them to set font for window captions easyly (through a dialog). It works fine fo W98, 2000, NT, and XP is the theme is Classic. But on XP if the theme is "Windows XP", the we have a problem: if the developer set the caption font to be say, "Script" (and all non-default font), then the...
3
1785
by: Sachin | last post by:
Hi All, I have a Theme folder "Default" which contians some skins, css files etc. I have specified default theme in Web.Config file under pages section. However, theme is not getting applied to the pages. I have not set any other settings? What could be wrong? Any hint? Thanks in advance Sachin
4
3413
by: Ben | last post by:
Hi, I'm using images in my menu control. I have my menu setup based on this example: http://msdn2.microsoft.com/en-US/library/system.web.ui.webcontrols.menuitembinding.imageurlfield(VS.80).aspx I have a theme and right now, the theme structure looks like... App_Themes --Authenticated ----Images ------Menu
0
934
by: William Sullivan | last post by:
I have a content page that is in a subdirectory that is restricted to certain user groups. My website's virtual directory structure looks like this: ~\mywebpage masterpage.master default.aspx ~\mywebpage\App_Themes\Default Default.css ~\mywebpage\AdminsOnly adminOnly.aspx
1
2893
by: Jeff | last post by:
Hey ASP.NET 2.0 In my website project the Default.aspx page contains this image: <asp:TableRow> <asp:TableCell> <asp:Image ID="imgBar" runat="server" ImageUrl="~/Network/Bar.aspx" /> </asp:TableCell>
1
1748
by: shapper | last post by:
Hello, I created a theme folder where I place my Skin and CSS files. I have 5 files: Base.skin, Base.css, Default.css, Contacts.css, Print.css Base Skin and CSS files should be used on all pages.
3
2264
by: =?Utf-8?B?dG9t?= | last post by:
Hi All, I have a theme with a Style.css in which I have defined a style rule for the body element : body { min-width: 780px; margin: 0; padding: 0;
4
4250
by: Neil Jones | last post by:
Hello, I would like to create my own theme(s) for a couple of my own blog sites. I am hoping a few better themes could bring lot more readers. So far, I have stayed with the default wordpress theme (blue title). There are a lot of web sites I have seen that have very attractive themes. I am not a programmer and do not like to edit the php files or css files etc. My preference is to visually create the theme (font,images,background...
1
2368
by: Henry Stock | last post by:
I am having trouble referencing a theme in my ASP.NET project. I was following a model that allowed for multiple themes. So The theme that I have is stored in named "Base" under the App_Theme folder that is stored at the root of my project folder. It is really the one I want to use for all pages, so I thought I would reference it in the web.config file: <pages masterPageFile="~/Masters/SiteTemplate.master"
0
9708
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, 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...
0
9587
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,...
0
10340
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7623
isladogs
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...
0
6857
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();...
0
5527
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...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.