Re: define style *** with data drom dbase
From: nicholas (murmurait1_at_hotmail.com)
Date: 10/07/04
- Next message: js: "default website"
- Previous message: Russ: "Re: Problem with postback after Response.Write"
- In reply to: Lucas Tam: "Re: define style *** with data drom dbase"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 7 Oct 2004 19:19:53 +0200
Found an easier way.
Just put this in the in the same event that load the data from the database:
response.write("<link rel=""style***"" type=""text/css""
href=""/custom_css/" & CurrentRow("cssstylename") & ".css"" />")
...and it works.
THX !
"Lucas Tam" <REMOVEnntp@rogers.com> wrote in message
news:Xns957B71A25D736nntprogerscom@140.99.99.130...
> "nicholas" <murmurait1@hotmail.com> wrote in
> news:#vmTwsHrEHA.3464@TK2MSFTNGP14.phx.gbl:
>
> > how can I have the style*** of my page defined from within my
> > database.
> >
> > now there is just this:
> > <link href="mystyle***.css" type="text/css" rel="style***" />
> >
> > and I want this:
> > <link href="generated_from_the_database.css" type="text/css"
> > rel="style***" />
> >
> > My dbase connection etc is already done and I use datatable (not
> > datareader)
>
>
> Here are a couple of ideas:
>
> -You can create a link to an ASPX page which outputs the CSS from the
> database:
>
> <link href="myoutputpage.aspx" type="text/css" rel="style***" />
>
> -You can include the CSS content on the current page with a literal -
> just fill a literal control with the CSS from the DB.
>
> For outputting CSS, a datareader is good enough... there's no real
> advantage to using a datatable.
>
> --
> Lucas Tam (REMOVEnntp@rogers.com)
> Please delete "REMOVE" from the e-mail address when replying.
> http://members.ebay.com/aboutme/coolspot18/
- Next message: js: "default website"
- Previous message: Russ: "Re: Problem with postback after Response.Write"
- In reply to: Lucas Tam: "Re: define style *** with data drom dbase"
- Messages sorted by: [ date ] [ thread ]