472,783 Members | 942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 3427

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John R. Lewis | last post by:
I posted this yesterday with a different email address. I am reposting with my fake-address as given to me by Microsoft so that I can be guraranteed a response from a support representative. Sorry...
6
by: Douglas J. Badin | last post by:
Earlier this month, there was a posting about this without a definitive answer. If you place a Wizard inside a FormView's EditItemTemplate the bound fields contained within the View will display...
3
by: chrisn | last post by:
Hi, (Using ASP.Net 2.0) I have a wizard control inside a detailsview control. When I attempt to call the InsertItem method on the DetailsView I get an error "ObjectDataSource...
4
by: Dabbler | last post by:
I have a Wizard control with each step using a user control. It seems the page_load of each user control is called everytime a postback event occurs in any step. Is there away to communicate to a...
12
by: raghav | last post by:
Hi I am working on ASP.NET 2.0. I am developing a website using Wizard control. Based on number of steps added, next, previous, finish buttons generate automatically. After running the...
0
by: =?Utf-8?B?WFNMZXI=?= | last post by:
I am working with the Wizard class for the first time, it seems like an easy way to setup a sequential series of steps. Current I have a render method for a server control I am writing like this:...
2
by: Mike | last post by:
I'm helping out on a web app and the developer that created the aspx pages is using <asp:wizardon the form. There are dropdowns, labels, buttons, etc within each wizard. How can I find a button...
0
by: Nick Chan | last post by:
Hi guys i have the following code for wizard Start,Prev,Next will run the methods that i assigned, using handles Protected Sub (ByVal o As Object, ByVal e As WizardNavigationEventArgs) Handles...
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.