Readers: 30 | Updated: 02-25

Dynamically Assigning Colors to Fields in ASP.NET [Microsoft Weblog]

Translate Into:

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?



From The Blogs

iTech News Net

04-11
Western Digital My Passport Essential Colors in 10 Colors
Western Digital offers the My Passport Essential 10 more colors in addition to black. Available in 160GB, 250GB  and 320GB, the My Passport Essential features synchronization, 128-bit encryption, and ... 查看全文

World,Fashion, Entertainment

06-12
Colors
Today, I returned back my mother's home, and I found it had great change surrounding, maybe because Beijing national stadium, bird's nest was next to here.My mother's home had been the construction si... 查看全文

Product Reviews Net

03-19
Colorware get funky with new colors on Nintendo DS Lite
We have to say hats off to Colorware and well done, the reason for this is because they just got funky with new colors on the Nintendo DS Lite. Basically what Colorware are saying is that why bother j... 查看全文

Product Reviews Net

04-02
Colorware paint Xbox 360, PS3 & Wii Guitar Hero axe: Sexy new colors
Many gamers think Colorware are gods and we would have to agree, they have just got their hands on Guitar Hero axe, they have got 3 stunning colors one for the Microsoft Xbox 360 a guitar for the Sony... 查看全文

jkOnTheRun

05-14
Google's recycled mouse in two of the four Google colors
I always wondered where mice went when they died. Now I know: sadly, they end up at Google. Oh wait... these recycled mice aren't made of old mice, they're recycled from plastics. Whew, that's much le... 查看全文

随心的海 haohanhai's Blog

05-17
ASP保存远程文件到本地(实用版)
<%Function SaveRemoteFile(LocalFileName,RemoteFileUrl)SaveRemoteFile=Truedim Ads,Retrieval,GetRem... 查看全文

随心的海 haohanhai's Blog

05-17
ASP保存远程文件到本地(增强版)
将下面代码保存成asp文件即可!............Tags - 网页制作 , asp , 代码 查看全文

Latest postings for The Lounge

05-17
still looking for ASP.Net web hosting
please if anyone can help me find a free ASP.Net web hosting i will be thankfull. because the one I'm using will stop and be deleted at the end of this month. 查看全文

Marshal

05-18
简单的asp带js计数器的源代码
简单的ASP网页计数器源代码 说明: 1、在网站目录下新建一个文本:txtcounter.txt 在文本填写1或其他识字 2、新建一asp文件:count.asp,加入以下代码: <%Count... 查看全文

Download Squad

05-20
mooColorFinder finds web colors
Filed under: Design, Internet If you're in the business of pirating colors from websites, then mooColorFinder is here to help you. Just type in a web address (say, your favorite blog) and mooColorFind... 查看全文
More Articles