471,046 Members | 948 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,046 software developers and data experts.

Wizard control: programmatically set visibility of (Templated)WizardStep

I would like to programmatically set the visibility of a selectedWizardStep
after clicking on a button contained in an other one.

I found the following in an article from D. Esposito

"The contents of a WizardStep can be dynamically adjusted and steps can be
programmatically added or removed as you please. However, to allow for
further customization, TemplatedWizardStep can be used instead of
WizardStep, allowing users to change the content and navigation templates
within it."

I assume that the above should also apply to the visibility property of the
The wizard's steps look like:

<asp:TemplatedWizardStep ID="ST0" runat="server" Title="ST0">


<asp:Button ID="Btn_Test" runat="server" Text="Button"
OnClick="Btn_Test_Click" />


Page load contains ....
Me.Wiz_Main.WizardSteps.Item(1).Visible = False

.... and the click event
Me.Wiz_Main.WizardSteps.Item(1).Visible = True

I keep getting the following error:
The Visible property of a View control can only be set by setting the active
View of a MultiView.

Thanks in advance for your support

Oct 20 '06 #1
0 3378

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by chrisn | last post: by
4 posts views Thread by Dabbler | last post: by
12 posts views Thread by raghav | last post: by
reply views Thread by =?Utf-8?B?WFNMZXI=?= | last post: by
2 posts views Thread by Mike | last post: by
reply views Thread by Nick Chan | last post: by
8 posts views Thread by GaryDean | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.