sodakotahusker
Programmer
- Mar 15, 2001
- 601
I want to check on the color between <% %> tags in my aspx page to see if the color is red or not.
I printed out the value of the color and got
Color [A=255, R=0, G=102, B=204]
however I can not use the <> with a system.color property and also can't convert that value to a string. It does not recognize = color.red either or system.drawing.color.red
<% if statuslabel.backcolor <> "Color [A=255, R=0, G=102, B=204]" then
dosomething
end if
Here is one of the errors :
BC30452: Operator '<>' is not defined for types 'System.Drawing.Color' and 'System.Drawing.Color'.
How can I do this?
I printed out the value of the color and got
Color [A=255, R=0, G=102, B=204]
however I can not use the <> with a system.color property and also can't convert that value to a string. It does not recognize = color.red either or system.drawing.color.red
<% if statuslabel.backcolor <> "Color [A=255, R=0, G=102, B=204]" then
dosomething
end if
Here is one of the errors :
BC30452: Operator '<>' is not defined for types 'System.Drawing.Color' and 'System.Drawing.Color'.
How can I do this?