WizardStep Title in HeaderTemplate

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.
 
A

Andy B.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top