开发者

System.Drawing.Color in Javascript

Greetings,

I have a class (let's call it Car) that has a property of type System.Drawing.Color (Call it CarColor). I have a script service function that uses this Car cla开发者_开发百科ss as a return value, which works just fine. I then have another script service function that takes a Car object as a parameter. I would like to change the color of the car in Javascript, but I am finding it difficult to do so without adding another parameter that takes in the color as a string and is then translated at the server.

Are there any ideas on how to set the Color property of the Car object in Javascript and maintain it through to the server?

Thanks!


Sharing Values Between JavaScript and C#

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜