Click to See Complete Forum and Search --> : Enable/Disable textbox when checkbox in a grid is checked


gvi
March 13th, 2007, 03:47 PM
Hi,

I am not sure if this was answered already, if yes pls. direct me to that thread/post. This is in asp 1.1

I have a datagrid which has 1 label,2 textboxes and 1 checkbox. If the checkbox is checked I would like to disable the 2nd textbox in the datagrid.

I have following questions abt this:

1. Is it possible to do this in the client side(javascript).
2. If not, If I try to do in the server not only it doesn't work it also clears the checkbox's values when posting back

Pls suggest a way to do this

Thanks
GV