b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

Microsoft Weblog

Dynamically Assigning Colors to Fields in ASP.NET

by Jason Bean on February 23rd, 2008

I’ve come across another little frustration with Visual Web Developer Express and ASP.NET

I’m trying to figure out how to dynamically assign a background color to a label or text field based on the value of a field in the database.

For example, we’d have a field labeled AlertColor and in that field would be the hexidecimal color code that we’d like to use based on the another field value somewhere else.

Now, I’d think that should be a straight forward bound field, but it appears that it’s not so simple. Does anyone have any good solutions or reasons why this isn’t as simple as I would expect?

POSTED IN: Software Wishlist, Training, Visual Web Developer Express

1 opinion for Dynamically Assigning Colors to Fields in ASP.NET

Have an opinion? Leave a comment: