BUG: Checkbox DTC Clears when EnabledID: Q195183
|
When a Checkbox Design-Time Control (DTC) is selected and disabled, enabling the check box will automatically clear the check box. This occurs when the scripting platform is Server (Active Server Pages [ASP]) for the Checkbox DTC.
This is a bug.
You can programmatically work around this behavior by adding the following code when enabling the check box:
Checkbox1.setChecked((Request.Form('_Checkbox1_state').item.search
(/_checked=true/)+1)!=0);
In the sample given below, make the following modification to the
Button1_onclick() function:
function Button1_onclick() {
Checkbox1.disabled=0;
Checkbox1.setChecked((Request.Form('_Checkbox1_state').item.search
(/_checked=true/)+1)!=0); //add this line
}
You can also work around this behavior by setting the scripting platform to
Client(IE 4.0 DHTML) for the Checkbox DTC.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Checkbox1.setChecked=(1);
Checkbox1.disabled=(1);
Checkbox1.disabled=(0);
Keywords : kbCtrl kbVisID600bug kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 10, 1999