![]() |
Re: Setting contents of style sheet at run-time
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" <BillBorg@discussions.microsoft.com> wrote in message news:48BAA37C-CD94-4CB6-AB2F-AD82C196BCA4@microsoft.com... > 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 |
Re: Setting contents of style sheet at run-time
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" <BillBorg@discussions.microsoft.com> wrote in message > news:48BAA37C-CD94-4CB6-AB2F-AD82C196BCA4@microsoft.com... > > 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 > > > |
| All times are GMT. The time now is 07:09 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.