About Enable and Disable Control

About Enable and Disable Control

  
When i am puttin any conditon on TextBox control to Enable and disable it at that time when it goes to disable mode it should change the TextBox Color as it shows when it comes in disable mode *(it is not allowing me to add the data when it is disabled) but it should change it's color to Gray which is not working.
Hi JD,

What I can suggest is that you can assign a Boolean variable (enabled) to your textbox's enable property , then also put it in your textbox's Extended Porperty > style, have something like

If(enabled, "background-color: #99FFCC", "background-color: #000")
then ajax refresh when you are enabling/disabling your textbox.

Hope it helps.

Best Regards,
Mark Chua