J
James Radke
Hello,
I have a strange problem. I have a repeater control which has as two
columns checkbox controls. In the repeater ItemDataBound event, I set the
first check box Checked status appropriately based on the value from a field
in the repeater data row. Then, if the first checkbox is not checked, I
disable the second checkbox in that row. Finally, I add an OnClick
attribute so that when the first check box is clicked, a client-side
javascript is executed.
This client side javascript simply enables or disables the second check box.
For example, if the first check box is selected, the javascript executes and
enables the second check box; if the first check box is de (un?)-selected,
the javascript function will disable the second check box.
Now, for the strange part: If the second check box is initially enabled
(i.e. the first checkbox is selected) everything works perfectly. However,
if the second check box is initially disabled (i.e. first checkbox is not
selected, I can ever enable the second checkbox from the javascript?
Can someone tell me why this is happening and what I can do to correct it?
Thanks!
Jim
I have a strange problem. I have a repeater control which has as two
columns checkbox controls. In the repeater ItemDataBound event, I set the
first check box Checked status appropriately based on the value from a field
in the repeater data row. Then, if the first checkbox is not checked, I
disable the second checkbox in that row. Finally, I add an OnClick
attribute so that when the first check box is clicked, a client-side
javascript is executed.
This client side javascript simply enables or disables the second check box.
For example, if the first check box is selected, the javascript executes and
enables the second check box; if the first check box is de (un?)-selected,
the javascript function will disable the second check box.
Now, for the strange part: If the second check box is initially enabled
(i.e. the first checkbox is selected) everything works perfectly. However,
if the second check box is initially disabled (i.e. first checkbox is not
selected, I can ever enable the second checkbox from the javascript?
Can someone tell me why this is happening and what I can do to correct it?
Thanks!
Jim