BUG: Checkbox DTC Clears When Enabled (195183)
The information in this article applies to:
- Microsoft Visual InterDev 6.0
This article was previously published under Q195183 SYMPTOMS
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.
CAUSE
This is a bug.
RESOLUTION
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.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 3/16/2005 |
---|
Keywords: | kbBug kbCtrl kbDSupport KB195183 |
---|
|