473,750 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP NET 2.0 Wizard Control - creating dynamic steps

I have a wizard control on a page with the first two setps are static,
created in the VS2005 UI; the remaining steps are created dynammically. For
some reason I cant get it to retain in the viewstate.

In the Page_Init I create the wizard steps. There will be 17 steps in all.

protected void Page_Init(objec t sender, EventArgs e)
{
if (!IsPostBack)
{
MemberAssessmen t assessment = getAssessment(a ssessmentID);

foreach (AssessmentSect ion section in assessment.Sect ions)
{
WizardStep step = new WizardStep();
step.Title = section.Name;
step.ID = "wizStep" + section.ID.ToSt ring();
Wizard2.WizardS teps.Add(step);
LoadStep(sectio n, step);
}
}
}

If I click 'Next' all of the dynamically created steps dissapear, so I
remove the IsPostBack and I cant save my values, beacuse the step is
recreated before the nextButtonClick event. My question is, in which page
event do I build the steps so that it will retain in the viewstate and not
have to be rebuilt?
Thanks,

--bill
Nov 19 '05 #1
0 2067

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

Similar topics

2
3627
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
1
1680
by: rdlauer | last post by:
Two (hopefully) quick questions for you all: 1. Is there any way within a Wizard Step to programmatically determine whether or not a postback has occurred? It appears as though, after the first step, you are always posting back (which makes sense). However, there are plenty of times when you would want to only execute code if the Wizard Step is being loaded for the first time. I'm getting around this by using some hidden fields, but...
0
1131
by: chetan mistry | last post by:
I'm having problems using the wizard step and just want to make sure that what I am doing is achievable. I want to dynamically create a number of steps but then use a single templated step (with Labels and PlaceHolders) which I populate with dynamic content. How can I create a single templated step that can be used by all the wizard steps? Regards Chet
8
7476
by: redeagle | last post by:
I'm wondering what the best practice is for creating a WinApp "wizard" that contains 4 or 5 "steps". Options so far are 1) Single WinForm making various controls visible/non visible at the different steps(although that may get cluttered in the design environment) 2) Create multiple WinForms (don't really know any pros or cons of this method) 3) Use a tabbed page (although I don't want to see any tabs)
12
2597
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 application, these button work automatically, means we can go to next step, previous step by clicking on corresponding buttons. In my application I have 3 steps. On Next button click of step 1, I want two things to happen. One is inserting data of step 1 in...
1
1672
by: =?Utf-8?B?QU5lZWxpbWE=?= | last post by:
I am using the asp.net 2.0 wizard with 5 steps and would like to do the following: Load a different .ascx (control) into each of the 5 steps I can load them fine but I notice that every time I navigate between steps, the entire UI 'flickers'. By debugging the problem, I noticed that the page_load event for each of the controls is called each time I click 'Next' or 'Previous' in the wizard
0
1470
by: Larry R | last post by:
I have a wizard control that has a varying number of steps. Each step utilizes different custom business objects and populates values. The steps are partially determined at the beginning of the wizard. Imagine a reporting wizard where you grab all of the parameters for a report. So, each of the steps are in a separate user control. The user control loads the appropriate objects from session controlled by properties on the control...
0
1268
by: Larry R | last post by:
I am having a problem with saving some state between user controls.I know that it is a event/lifecyclye thing, but can;t quite find the right event. Here is the setup: I have a Customer BO that is stored in session. There is a wizard that gets the id, loads the Customer, allows changes, then saves. Simple, right? Since the steps in the final project are quite dynamic, I extracted
0
1258
by: Junior | last post by:
I need to learn which pattern or some coding methodology I should use to repeat all of the steps when using a Wizard control. Each iteration of the Wizard has 10 steps each of which collects data. The Wizard maintains state in ViewState but there could easily be as many as 10 iterations required collecting data from 10 steps per iteration. What's a good way to collect the data while still making it accessible in the Wizard while the...
0
9001
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9583
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9342
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.