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 19:12:12
You can do this: 

<LINK href="<%=this.StyleSheet%>"
type="text/css" rel="stylesheet">

And then create a property in your codebehind called
StyleSheet.

Dino

-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Pardee, Roy
Sent: Wednesday, 29 March 2006 06: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(r)  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]

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