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 20:26:38
Its an HtmlGenericControl

Mark Kucera
mkuceraInterCerve.com
 

-----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 1:34 PM
To: DOTNET-WEBDISCUSS.DEVELOP.COM
Subject: Re: [DOTNET-WEB] Asp.net 1.1: How hard to change
stylesheet on
the fly?

This looks promising--thanks!

For some reason when I add that vs.net is not adding a
control named
styleSheet.  I can add it manually, but what is the type of
the control
I should add?

Thanks!

-Roy

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

<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(r)  http://www.develop.com

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


===================================
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 )