WizardStep Title in HeaderTemplate

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

Hi All,

What's the best way to put a heading for each Wizard Step?

For each Wizard Step, I have filled in the title property

I attempted to put a label control in the header template, which i could
then poplate with the WziardStep.title from the active wizard step - but I
am unable to access the label at runtime.
 
The easiest way I found is this: In the WizardActiveStepChanged event put
this:

Wizard1.HeaderText="<h2>"+Wizard1.ActiveStep.Title+"</h2>"

Sometimes (especially if you have the wizard in panels) the first wizard
step won't register the title. Probably because the activeStepChanged event
doesn't fire for some reason. To fix it, just put the above code in the
wizards load event.
 
Back
Top