PRB: Radio Button Does Not Bind Correctly to Boolean (185566)
The information in this article applies to:
- Microsoft Internet Client SDK 4.0
- Microsoft Internet Client SDK 4.01
This article was previously published under Q185566 SYMPTOMS
<INPUT> tags of type RADIO do not seem to bind to Boolean data correctly.
This would occur in a RADIO group where one RADIO button would have a value
of "true" and the other would have the value or "false."
CAUSE
For reasons that are apparent when you consider a text column bound to a
text box, the string comparisons are case-sensitive. Zero and 1 are
converted to "False" and "True" (notice the uppercase letters),
respectively.
When a record from a bound data source is navigated to, the DATAFLD that
the RADIO button is bound to is evaluated and converted to "True" or
"False" before deciding which RADIO button to select. If the RADIO button's
values are set to "true" and "false" (notice the lowercase letters), then
the value returned from the data source would be equal to neither. For this
reason, neither RADIO button will be selected.
RESOLUTION
If you change "true" and "false" in your page to "True" and "False,"
respectively, the page will behave as you desire.
STATUS
This behavior is by design.
REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbprb KB185566 |
---|
|