473,386 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 3461

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.