开发者

Not able to get backcolor of textbox

I am setting color of a textbox at client side using

id.style.backgroundColor = decode[1];  

Here decode[1] contains colors depending on a condition.

I am able to set the color here, but i am not able to identify this color at server side.

What property should i use to retrieve this color.

TextBox.BackColor doesnot seem to work.

As of now I am setting text also in same way and i am able to retrieve the text at serverside but not color.

Tha开发者_StackOverflow社区nks in Advance!


When you retrieve this color at server side do one thing you can set this color value in Hidden field and then can get hidden field value from server side which would be same as background color of text box.

Hope this will help.


There isn't such a property or method that reflect changes made on DOM (client side). Try to change BackColor at server side.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜