List Info

Thread: Asp.net 1.1: How hard to change stylesheet on the fly?




Asp.net 1.1: How hard to change stylesheet on the fly?
user name
2006-03-28 18:13:13
Hey All,

I've got an asp.net app w/a link tag to an external
stylesheet like so:

<LINK href="styles.css"
type="text/css" rel="stylesheet">

Suppose I had 2 stylesheets & I wanted to be able to
switch them on the
fly in server-side code (e.g., in response to a query
parameter).
Anybody know a graceful way of doing that?

Thanks!

-Roy

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Asp.net 1.1: How hard to change stylesheet on the fly?
user name
2006-03-28 18:21:44
<link id="styleSheet"
href="styles.css" type="text/css"
rel="stylesheet"
runat="server" />

In the code-behind:

this.styleSheet.Href = ...


-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Pardee, Roy
Sent: Tuesday, March 28, 2006 12:13
To: DOTNET-WEBDISCUSS.DEVELOP.COM
Subject: [DOTNET-WEB] Asp.net 1.1: How hard to change
stylesheet on the fly?

Hey All,

I've got an asp.net app w/a link tag to an external
stylesheet like so:

<LINK href="styles.css"
type="text/css" rel="stylesheet">

Suppose I had 2 stylesheets & I wanted to be able to
switch them on the fly
in server-side code (e.g., in response to a query
parameter).
Anybody know a graceful way of doing that?

Thanks!

-Roy

===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )