473,396 Members | 1,924 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.

Load different stylesheets at runtime

Hi Everyone:

I have ASP.Net 2.0 application which is being called from a portal
written in ASP.Everything is working fine but i have a question
regarding the stylesheet. We have different stylesheets for different
clients, client_groups etc. In ASP Pages i can do

<link rel="stylesheet" type="text/css" href="images/portal.css"/>
<!-- Default -->
<link rel="stylesheet" type="text/css" href="images/portal<
%=client_group_id%>.css"/> <!-- Client group level -->
<link rel="stylesheet" type="text/css" href="images/portalClient<
%=client_id%>.css"/<!-- Client level -->

Can someone please tell me how can apply the same thing in .Net 2.0.

Thanks in advance.

Pargat

Mar 19 '07 #1
2 1330
<pa**********@gmail.comwrote in message
news:11**********************@l75g2000hse.googlegr oups.com...
Can someone please tell me how can apply the same thing in .Net 2.0.
http://msdn2.microsoft.com/en-us/lib....htmlhead.aspx
Mar 19 '07 #2
the same code will work, but you should probably use themes.

-- bruce (sqlwork.com)

pa**********@gmail.com wrote:
Hi Everyone:

I have ASP.Net 2.0 application which is being called from a portal
written in ASP.Everything is working fine but i have a question
regarding the stylesheet. We have different stylesheets for different
clients, client_groups etc. In ASP Pages i can do

<link rel="stylesheet" type="text/css" href="images/portal.css"/>
<!-- Default -->
<link rel="stylesheet" type="text/css" href="images/portal<
%=client_group_id%>.css"/> <!-- Client group level -->
<link rel="stylesheet" type="text/css" href="images/portalClient<
%=client_id%>.css"/<!-- Client level -->

Can someone please tell me how can apply the same thing in .Net 2.0.

Thanks in advance.

Pargat
Mar 19 '07 #3

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

Similar topics

7
by: Carlos Ribeiro | last post by:
I'm looking for ways to load new class definitions at runtime (I'm not talking about object instances here, so a persistent object database isn't what I am looking for ). I'm aware of a few...
6
by: Ben Sharvy | last post by:
I'm using Netscape 7.02 for Mac, and observed the same problem on some version of Mozilla under Red Hat. Netscape won't load the stylesheet for this page:...
3
by: jason baumunk | last post by:
I author applications in php which use external stylesheets. When viewed through ie 6, netscape 6, et al. occassionally the stylesheets will not load or be applied. Has anybody encountered this...
3
by: Waqas Pitafi | last post by:
Hi, I have a table with the data like this, ID Status Description 1 R Read 2 U UnRead D D ...
2
by: Alex Fennell | last post by:
Hi all I have been playing around with C# for a while now and can't seem to find any logically named functionality in the .Net framework to load a C# .dll at runtime in the same way you would do...
9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
6
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath =...
2
by: TAL651 | last post by:
Hello, I'd like to use XML + XSLT to create a sortable table. The XML stores the data, and two different XSL stylesheets display the table, sorted in two different ways. What I don't understand...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...
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.