BDRichardson
Programmer
Hi,
I am experiencing a strange problem with the CheckBox control. In summary, I am changing the 'disabled' state of the control with JavaScript in the client. The state is changed when I click on a different CheckBox. So, if the controlling CheckBox is Checked, then the controlled Checked is not disabled. And if the controlling CheckBox is not checked, then the controlled CheckBox is disabled.
When the controlling CheckBox is clicked, it calls a function, which appropriately changes the disabled state, and finally submits the page.
I am not using any server side code to control the either the disabled state, or the checked state.
However, my problem is that the checked state of the controlled CheckBox changes, and the CheckedChanged event is raised. I do not want this to happen when I click on the controlling CheckBox.
I have checked and confirmed the following:
EnableViewState property for the CheckBoxes is True.
AutoPostBack for the CheckBoxes is False.
Event Handlers are assigned correctly.
Does anyone know if the there is a bug related with the CheckBox control, and whether it is possible that either the Checked state is changed, or the CheckedChanged event is raised, whenever the disabled state is changed with client script?
I am using Visual Studio 2005 and Internet Explorer 7.
I am experiencing a strange problem with the CheckBox control. In summary, I am changing the 'disabled' state of the control with JavaScript in the client. The state is changed when I click on a different CheckBox. So, if the controlling CheckBox is Checked, then the controlled Checked is not disabled. And if the controlling CheckBox is not checked, then the controlled CheckBox is disabled.
When the controlling CheckBox is clicked, it calls a function, which appropriately changes the disabled state, and finally submits the page.
I am not using any server side code to control the either the disabled state, or the checked state.
However, my problem is that the checked state of the controlled CheckBox changes, and the CheckedChanged event is raised. I do not want this to happen when I click on the controlling CheckBox.
I have checked and confirmed the following:
EnableViewState property for the CheckBoxes is True.
AutoPostBack for the CheckBoxes is False.
Event Handlers are assigned correctly.
Does anyone know if the there is a bug related with the CheckBox control, and whether it is possible that either the Checked state is changed, or the CheckedChanged event is raised, whenever the disabled state is changed with client script?
I am using Visual Studio 2005 and Internet Explorer 7.