473,805 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

App_Theme and <link rel="stylesheet " .. /> output problems.

I wanted to use App_Theme, because then I might have some automation
when it comes to not hard coding paths for the css.

And as you know, you know that mozilla and IE renders differently, and
they require different style sheets:

Solution is as follows:

<link rel="stylesheet " href="default.c ss" type="text/css" media="all"
title="Default styles" />
<!--[if IE]>
<link rel="stylesheet " href="ie.css" type="text/css" media="all"
title="IE-specific styles" />
<![endif]-->

The problem is that SetStyleSheet() in PageTheme class can't be
overriden because it's internal (And Page calls it from outside).
It can't be used by the developer in any way, only in the runtime as
MSDN says:

"Page and control developers do not use the ControlSkinDele gate,
ControlSkin, or /PageTheme/ classes directly. These classes are used by
the ASP.NET parser and runtime to apply style sheet elements that are
defined in ASP.NET themes and control skins files to pages and specific
types of controls."

So here I am, thinking that App_Theme won't do me anything good, because
I already got classes and stylesheets done, and I have made my own local
resource provider to become global, so that I can use meta:resourceke y
globally. So the only reason for me to use App_Theme was the automatic
stylesheet output (which can't be overridden) and the possibility to
actually have different themes without _hardcoding_ anything.

---

Is there a way to solve this (in an elegant manner)?

I can't even access the LinkedStyleShee ts property on PageTheme because
it's protected, and inheriting from that class won't do me any good.

If not, PLEASE make PageTheme class a provider, just like the
<globalizatio n resourceProvide rFactoryType .. /> !
Thanks in advance!
--
Emil Christopher Melar
Mar 3 '06 #1
0 1735

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

Similar topics

0
2460
by: |-|erc | last post by:
<?php // Get the names and values for vars sent by index.lib.php3 if (isset($HTTP_GET_VARS)) { while(list($name,$value) = each($HTTP_GET_VARS)) { $$name = $value; }; };
5
6693
by: Stan Brown | last post by:
The page http://w3development.de/css/hide_css_from_browsers/media/ suggests using @media all { } around rules to hide them from older browsers. Suppose the above occurs in a style sheet that was linked from my HTML via <link media="screen" ...>
3
7302
by: Islam Elkhayat | last post by:
Hello everybody Ihave few .CSS files, I let user select the color schema of the whole site using a radiobutton and save it in a cookie.. I want to retrieve the value of the cookie <link href=" HERE " rel="stylesheet"> i try to put it using InnerHtml or InnerText but it fail using div, span so on... how can i handle this.. thanx
2
2965
by: yer darn tootin | last post by:
Here's the scenario: I have a javascript function taking the contents of a datalist ( content from a SQL db ) and opening it in a new window to allow the user to print. The pop-up window successfully applies the formatting from the datalist ( ie the dl's <ItemStyle> properties ), but ignores any of the formatting 'hard coded' into the SQL data being returned, eg things like <div class="newpara">. This in-table formatting appears OK on the...
1
5950
by: melda | last post by:
I am a real beginnner in ASP. Due to increasing demands on dynamic website, I've been working on ASP website now. I use a ready to use CMS program and right now I've been trying to combine a calendar module into my CMS. The calendar works fine except that if I click on the date or the month earlier or later, the page always goes back to the first page which is first opened. You can take a look at this address:...
4
13738
by: Francesco Moi | last post by:
Hi. I'm trying to place three "<div class=foo>" boxes in the same line: ----html-------------------- <HTML><HEAD> <link href="test.css" rel="stylesheet" type="text/css" /> </HEAD> <body> <div>
3
2042
by: PJ6 | last post by:
Embedded javascript can be served from a DLL with an include that uses a special URL generated by the Page.ClientScript.GetWebResourceUrl method at runtime. For example: <script src="/DEV-WEB/WebResource.axd?d=Fzr7sc4IZAELIE4FCpgaNkpd1YgQqgig1EfiFj9_b7U1&t=633202779231250800"type="text/javascript"></script> .... so can style sheets: <link rel="stylesheet" type="text/css"
3
7846
by: joe | last post by:
Is it OK to have multiple: <script type="text/javascript" src="funcs1.js"></script> <script type="text/javascript" src="funcs2.js"></script> <script type="text/javascript" src="funcs3.js"></script> ? And I need to use similarly multiple CSS:
23
2996
by: Stanimir Stamenkov | last post by:
I want to find out whether the following usage of the "Bookmark" link type is o.k. An example could be seen at <http://www.geocities.com/stanio/more/horoskop.html>. The text is in Bulgarian and is some kind of entertaining poetical horoscope. I've used <LINK rel="Bookmark"to create a meta-TOC for the document. Reading the definition of the "Bookmark" link type in the HTML spec I haven't actually got if I'm using it correctly. ...
0
9718
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
9596
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
9186
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, 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...
1
7649
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
5544
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
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
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
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
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...

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.