The Wizard control in ASP.NET 2.0 help building a web application where you want functionality of wizard.This article will explain the basics of the Wizard Control by creating a web application.
Creating Web App
Open Visual Studio 2005.
create new Web Site app.
use C# as language.
From Toolbox, drag a Wizard control onto the Default.aspx. This will create a wizard control with two default steps already in place. Clicking any step allows editing.
Click on the small box that appears at the upper right side of control to open the wizard menu.
click on auto format menu entry. and select a scheme you want for your wizard and click ok to apply the scheme.
After applying the scheme, click Step 1 in wizard Control to activate first step.You can now edit the display of Step 1.
if we want to get the personal info in first step then drag a Label and TextBox control onto the active area of the wizard, set the label text as First Name. and drag another Label and TextBox onto the active area and set label text as Last Name and repeat the same process for date of birth.
you wizard first step will look like this.
in second step you can add the text box which can hold some personal description. which look like this.
Now add a final step which will display all the information about user.
you can Add/Remove Wizard Steps by right clicking the wizard control and selecting the add/remove option.add new step from this dialog and set the title of the new step to Final info and steptype to Complete. Click OK button.
Sidebar in final Step is not visible. Drag three labels onto the wizard control. Name the labels FName, LName, and Desc.
you can simply use page load function to set values to labels in final step.
protected void Page_Load(object sender, EventArgs e)
FName.Text = TextBoxFName.Text;
LName.Text = this.TextBoxLName.Text;
Disc.Text = this.TextBoxDesc.Text;
Thats it save your app an run it type your value in text boxes and move next and you will get all the info on final step.
and you can add click next button event for further functionality on next button click.
With wizard control you can easly create simple database wizard for add update and delete and functionalities like quiz.
software developer working in C# and asp.net from many years. background with C++,MFC,COM,ActiveX...etc
mostly worked on management software’s like Workflow Management, CRM,Time & Attendance Management, Marketing Message Management.
Like to play Cricket , Footy (Arsenal) ,Snooker