> Excuse me, but I seriously don't think that the type of video card that
> you have in your computer has anything to do with this.
Well sorry, but it is a factor. If you have a video card that only knows
how to display 256 colors, then you aren't going to get Gainsboro.
> The color "Gainsboro" would likely be defined in some web standard. As
> long as the browsers *rendering engine* can interpret what Gainsboro
> should be, it'll display fine.
And, what web standard would that be? There are the colors defined as the
"Web Safe" colors and, yes, these colors do have names associated with them.
But the translation of those names into RGB values is in no way guaranteed
to happen in the same way from system to system.
> The code that you are working on is executed server side. The resultant
> output of this execution is valid HTML.
Stop right there. If you look at the resulting output, you will see that it
is not only HTML, but could also consist of CSS, static text and JavaScript
depending on the Web Forms control you were using. And, in this example the
resulting code would contain NOT the RGB value, but a CLIENT side reference
to Gainsboro. Try it for yourself and see.
> The Color struct cotains definitions for a set number of colors. If you
> want to use a colour that is not provided, then you use the RGB
> representation instead.
Gee, that sounds like what I said.
>> While the Properties window does show Gainsboro in the list, remember
>> that the values you select in the Properties window for web forms
[quoted text clipped - 63 lines]
>>>>>
>>>>> Help!
Brendan Green - 29 Aug 2005 04:01 GMT
>> Excuse me, but I seriously don't think that the type of video card that
>> you have in your computer has anything to do with this.
>
> Well sorry, but it is a factor. If you have a video card that only knows
> how to display 256 colors, then you aren't going to get Gainsboro.
No, you don't get Gainsboro. You get something that is converted down.
Still, the video card has no impact to the generation of the website. The
browser takes the value Gainsboro and converts it to some color that is used
when rendering the page. Get it? The browser takes care of the colours,
the video card just display's what it is given.
>> The color "Gainsboro" would likely be defined in some web standard. As
>> long as the browsers *rendering engine* can interpret what Gainsboro
[quoted text clipped - 4 lines]
> them. But the translation of those names into RGB values is in no way
> guaranteed to happen in the same way from system to system.
You're missing the point. The browsers *rendering engine* is responsible
for displaying the web page. If its a known colour in, say, CSS, then the
browser will know what to do with it, and display it appropriately.
>> The code that you are working on is executed server side. The resultant
>> output of this execution is valid HTML.
[quoted text clipped - 4 lines]
> this example the resulting code would contain NOT the RGB value, but a
> CLIENT side reference to Gainsboro. Try it for yourself and see.
So you get CSS and static text? So what, I missed a couple of TLA's? The
end result is something that gets interpreted by the browser. I am trying
to make the distinction between server side and client side processing.
>> The Color struct cotains definitions for a set number of colors. If you
>> want to use a colour that is not provided, then you use the RGB
>> representation instead.
>
> Gee, that sounds like what I said.
Yes, I am reiterating the fact, which I thought would be prudent, given that
some of the earlier stuff that you wrote was confusing, and not related to
the problem at hand.
>>> While the Properties window does show Gainsboro in the list, remember
>>> that the values you select in the Properties window for web forms
[quoted text clipped - 66 lines]
>>>>>>
>>>>>> Help!
Scott M. - 29 Aug 2005 16:12 GMT
You are missing the point completely. I do "get it" and have "gotten it"
for the last 15 years since I've been doing and teaching "it". I never said
the video card has an impact on the code generated for the web site (and
yet, you keep telling me that I'm wrong and that I did). I said that color
names should not be used because different video cards will render different
CLIENT side color names differently (it doesn't matter if the browser
translates Gainsboro into an RGB if that is an RGB the video card can't
render correctly).
In short, you should not be using color names in CLIENT side code. If you
use Color.Gainsboro (SERVER code), the CLR will NOT convert that to an RGB
value to be sent to the CLIENT. It creates CSS for the control and
continues to refer to Gainsboro and round and round we go.
Now, lets consider that it is entirely possible with some of the more
obscure color names that different browsers are going to interpret what RGB
the color name should be translated to, which will result in different
colors being seen in the client.
>>> Excuse me, but I seriously don't think that the type of video card that
>>> you have in your computer has anything to do with this.
[quoted text clipped - 114 lines]
>>>>>>>
>>>>>>> Help!