Forums

ASP

This topic is locked

am I asking too much

Posted 03 Sep 2002 05:15:02
1
has voted
03 Sep 2002 05:15:02 Jeremy Millar posted:
I know this is weird... but just ket me explain... I want my intranet users to be able to choose their favourite color from a list and have that color stored in the database. When the user looks at their personal information, the bodytext will be formatted in that color... Hopefully someone can point me in the right direction...

Thank-you

Replies

Replied 03 Sep 2002 09:15:44
03 Sep 2002 09:15:44 Vince Baker replied:
This is possible, I have done simular for a site where the administrator can change the feel of the site.

You store the colour chosen and the users ID in a table.

When they personal details page opens, filter a recordset on the users id. Highlight the dynamic text that you want to have a dynamic colour for and in the Colour properties box in UD / MX enter the colour data field:

<%=(rsYourColourRecordset.fields.item("ColourFieldName".value)%>

Voila.



Response.write("The best line of code you can ever use"

Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic