468,784 Members | 1,557 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,784 developers. It's quick & easy.

Wizard control: programmatically set visibility of (Templated)WizardStep


Hello,
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
(http://msdn.microsoft.com/msdnmag/is...1/CuttingEdge/)

"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
wizardsteps.
The wizard's steps look like:
<wizardsteps>

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

<ContentTemplate>

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

</ContentTemplate>

....
</wizardsteps>
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

Michel
Oct 20 '06 #1
0 3331

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.