J
John Mott
Hi All,
I'm trying to set the defaultbutton for a form to a button contained in a
step template for a wizard control. This is the code in PreRender:
switch (myWizard.ActiveStep.StepType) {
case WizardStepType.Start: this.Page.Form.DefaultButton =
"StartNextButton"; break;
case WizardStepType.Finish: this.Page.Form.DefaultButton =
"FinishButton"; break;
default: this.Page.Form.DefaultButton = "StepNextButton"; break;
}
I get this error:
The DefaultButton of 'form1' must be the ID of a control of type
IButtonControl
The buttons are clearly just buttons defined in the Template section of the
wizard.
Why can't it see the buttons defined in the templates?
Thanks,
John Mott
(e-mail address removed)
I'm trying to set the defaultbutton for a form to a button contained in a
step template for a wizard control. This is the code in PreRender:
switch (myWizard.ActiveStep.StepType) {
case WizardStepType.Start: this.Page.Form.DefaultButton =
"StartNextButton"; break;
case WizardStepType.Finish: this.Page.Form.DefaultButton =
"FinishButton"; break;
default: this.Page.Form.DefaultButton = "StepNextButton"; break;
}
I get this error:
The DefaultButton of 'form1' must be the ID of a control of type
IButtonControl
The buttons are clearly just buttons defined in the Template section of the
wizard.
Why can't it see the buttons defined in the templates?
Thanks,
John Mott
(e-mail address removed)