473,385 Members | 2,014 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,385 software developers and data experts.

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(object sender, EventArgs e)
{
if (!IsPostBack)
{
MemberAssessment assessment = getAssessment(assessmentID);

foreach (AssessmentSection section in assessment.Sections)
{
WizardStep step = new WizardStep();
step.Title = section.Name;
step.ID = "wizStep" + section.ID.ToString();
Wizard2.WizardSteps.Add(step);
LoadStep(section, 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 2053

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

Similar topics

2
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
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...
0
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...
8
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...
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...
1
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...
0
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...
0
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...
0
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....
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.