1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Feb 2006
    Rep Power

    Anyway for a css file to pull values out of a mysql database?

    I've slowely been migrating my site from using standard html pages to using asp pages. Presently the style of the site is controlled by a CSS file. I have created a form that would edit the sites background colors, font colors, link colors, link font type, sites font type, etc, etc. The issue is to merge the changes in with the site, I'd have to edit each and every page. I'd rather intergrate the changes I make in the configuration form that I have (which is linked to a mysql database) and have them change/link/edit/whatever the main Site CSS file. Basically I am letting the site managers edit the colors and font information whenever they choose without having to rewrite the html or touch any of the coding.

    So basically
    configuration.asp          sitecontrol.css
          \                                 /
            \                             /
              \                         /
              configurationtable (mysql db)
    I am wondering if there is a way to get my css file to go to the configurationtable in my mysql database to pickup values.
  2. #2
  3. Cunning Linguist
    ASP High Scholar (3500 - 3999 posts)

    Join Date
    Mar 2005
    I used to live at home, now I stay at the house
    Rep Power
    You can just put your CSS in an ASP file, and link to it as such.
    	Dim foo
    <link rel="stylesheet" type="text/css" href="style.asp" />
    Support requests via PM will be ignored!
    Route of Queue | The General FAQ Thread | HOW TO POST A QUESTION

    Perfectly Impossible - is the eagerly awaited debut release from Jayne Sarah - please buy it - it's really good!

Similar Threads

  1. Replies: 2
    Last Post: August 5th, 2005, 03:20 AM
  2. Database password in an external file !!!
    By Zoe-Alyssa in forum ASP Development
    Replies: 1
    Last Post: July 31st, 2005, 01:43 PM
  3. Securing A Database
    By TBÁrpi in forum Microsoft Access Help
    Replies: 31
    Last Post: January 25th, 2005, 05:23 PM
  4. file upload to file and database
    By mushrushGE in forum ASP Development
    Replies: 7
    Last Post: December 2nd, 2004, 05:05 PM
  5. DateTime
    By Steve Schofield in forum ASP Development
    Replies: 1
    Last Post: February 27th, 2000, 02:34 AM

IMN logo majestic logo threadwatch logo seochat tools logo