Skip to content

Tuesday, December 1st, 2009

Dynamically Assigning Colors to Fields in ASP.NET

February 23, 2008 by Jason Bean  
Filed under Computers

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?

  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google
  • TwitThis
  • Reddit
  • Yahoo! Buzz
  • Slashdot
  • E-mail this story to a friend!
  • BallHype
  • YardBarker

Comments

One Response to “Dynamically Assigning Colors to Fields in ASP.NET”
  1. paski says:

    can you tell memore about the xp and linux world if you have any

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


About Us | Advertise with us | Blog for EveryJoe | Privacy Policy | Terms of Use
Get This Theme | Sitemap


All content is Copyright © 2005-2009 b5media. All rights reserved.