"nicholas" <mu********@hotmail.com> wrote in
news:#v**************@TK2MSFTNGP14.phx.gbl:
how can I have the stylesheet of my page defined from within my
database.
now there is just this:
<link href="mystylesheet.css" type="text/css" rel="stylesheet" />
and I want this:
<link href="generated_from_the_database.css" type="text/css"
rel="stylesheet" />
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="stylesheet" />
-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 (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/