![]() |
|
|
|||||||
![]() |
ASP Net - Re: Setting contents of style sheet at run-time |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi,
Put a Literal control on the page and in codebihide : Literal1.Text = "<STYLE>.MyHeaderStyle { FONT-SIZE: 10pt; COLOR: black } </STYLE> " Thus ,you can modify MyHeaderStyle at the rumtime. -- Juno MCSD.NET, MCDBA, MCSE ---------------------------------------------------------- Support Team of EasyDotNet, INC. http://www.EasyDotNet.com DataForm.NET - The most powerful data entry web server control for ASP.NET "Bill Borg" <> wrote in message news:48BAA37C-CD94-4CB6-AB2F-... > Hello all, > > I am using a style sheet to format html output. Is there a way to override > those style attributes at run-time? > > e.g. <span class=MyHeaderStyle>Some header...</span> > > I would like to pull from a database and set attributes of MyHeaderStyle for > font-size, color, etc. > > I'm thinking this is possible, but can't figure it out. Any help is > appreciated. > > Thanks, > > Bill Borg Juno |
|
|
|
|
#2 |
|
Posts: n/a
|
Brilliant, thank you.
"Juno" wrote: > Hi, > > Put a Literal control on the page and in codebihide : > Literal1.Text = "<STYLE>.MyHeaderStyle { FONT-SIZE: 10pt; COLOR: black } > </STYLE> " > > Thus ,you can modify MyHeaderStyle at the rumtime. > > -- > Juno > MCSD.NET, MCDBA, MCSE > ---------------------------------------------------------- > Support Team of EasyDotNet, INC. http://www.EasyDotNet.com > DataForm.NET - The most powerful data entry web server control for ASP.NET > > > > "Bill Borg" <> wrote in message > news:48BAA37C-CD94-4CB6-AB2F-... > > Hello all, > > > > I am using a style sheet to format html output. Is there a way to override > > those style attributes at run-time? > > > > e.g. <span class=MyHeaderStyle>Some header...</span> > > > > I would like to pull from a database and set attributes of MyHeaderStyle > for > > font-size, color, etc. > > > > I'm thinking this is possible, but can't figure it out. Any help is > > appreciated. > > > > Thanks, > > > > Bill Borg > > > =?Utf-8?B?QmlsbCBCb3Jn?= |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| This is incredible! | jc_ice | DVD Video | 1 | 08-13-2006 10:47 AM |
| fwd: Copyright law caught in its own time warp | Netmask | DVD Video | 3 | 07-23-2006 02:40 AM |
| Cannot erase DVD-RW | Terry Pinnell | DVD Video | 54 | 10-09-2005 10:14 PM |
| As growth slows, Hollywood faces a DVD standoff. | Allan | DVD Video | 0 | 07-11-2005 02:10 PM |
| Re: 7. The truth about our creator. .7 | john smith | DVD Video | 2 | 07-25-2003 03:54 AM |