The information in this article applies to:
SYMPTOMSWhen clicking on an OptionGroup Design-Time Control (DTC) whose Scripting Platform is set to "Server (ASP)," the OnChange event does not fire immediately. Specifically the OnChange event does not fire until the control has lost its focus. CAUSEThe OnChange event of a Radio Button control does not fire until the Radio Button control has lost its focus. Since the OptionGroup DTC essentially uses HTML Radio Button controls to implement its OnChange event, the event handler for the OnChange event is not called until the user clicks outside the Radio Button control. RESOLUTION
To allow code to respond immediately to user input for the OptionGroup DTC, you can use the OnClick event for the Radio Button control. Since the OnClick event is not an event available to the script object of the OptionGroup DTC, you can use the advise method to register this event.
STATUSThis behavior is by design. REFERENCESQ193229 BUG: Onchange Unavailable in VBScript with OptionGroup DTC Additional query words:
Keywords : kbCtrl kbScript kbVisID600 kbGrpASP |
Last Reviewed: March 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |