CSS errors when setting values with asp session variables

Within style tags in a page, I am setting properties with asp session
variables, for example: body{background:" & Session("RGB") & "}

 

With the CSS validator this gives the error:  body:  Invalid number
background parse error.

 

If I change the session variables to constants, (for example:
body{background: #FFFFCC}) there are no errors.

 

The source code with session variables and with constants are exactly the
same.

 

Please advise.

 

Yours sincerely

 

Roger Withnell

Upper Bridge Enterprises LLP 

+44 1497 831019

+44 7836 749633

 

--------------------- End of message text
------------------------------------------

Upper Bridge Enterprises LLP, Partnership No. OC323844.
Registered office address Upper Bridge Court, Brilley, Herefordshire HR3 6HG
 
This email and any attachment is intended for and confidential to the 
addressee.  If you are neither the addressee nor an authorised recipient 
for the addressee please notify us of receipt, delete this message from 
your system and do not use, copy or disseminate the information in, or 
attached to it, in any way. 
 
Our messages are checked for viruses but please note that we do not accept 
liability for any viruses which may be transmitted in or with this message. 
 
*****************************************************************

 

Received on Monday, 15 January 2007 04:03:33 UTC