The problem is that Gainsboro doesn't get converted to an RGB when the code
is delivered to the client. Cascading Style Sheet code is produced with the
color name Gainsboro still intact. The use of the color name in the client
code is producing different colors depending on the client that is receiving
the code. There is no error message.
If you've read this thread, you'll see that the solution is not to use the
color name Gainsboro and to use the RGB value for it instead.
"Zanna" <> wrote in message
news:HDXPe.108672$...
> "Paul Smith" <> ha scritto nel messaggio
> news:43066b16$0$97123$ed2619ec@ptn-nntp-
>
>> I have a button on my web page the backcolor of which I want to change:
>>
>> btnSample.backcolor = ????????
>>
>> I want the color to be Gainsboro
>>
>> However I enter Gainsboro or color.Gainsboro I have the blue wavy line
>> indicating an error.
>
> What is the error?
>
> in C# (case sensitive) you need to write
>
> btnSample.BackColor = Color.Gainsboro;
>
> It's really no matther if the value came from the Web palette or it is in
> RGB: it's a System.Drawing.Color and this is all you need.
>
> --
> .Net Reporting tool: http://www.neodatatype.net
>
>