Blue Theme Orange Theme Green Theme Red Theme
 
Mindcracker MVP Summit 2012
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Nevron Chart
Search :       Advanced Search »
Home » ASP.NET 2.0/3.5 » Wizard Control in ASP.NET 2.0

Wizard Control in ASP.NET 2.0

This article discusses how to create and use the Wizard control in ASP.NET 2.0.

Page Views : 5096
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Mindcracker MVP Summit 2012
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

Introduction

 

The wizard control is a more glamorous version of the multiview control. It also supports showing one of several views at a time. Basically a wizard interface will be used when we require a user to input a lot of data categorize in various steps. Wizard enables us to take the data from the user a series of multiple steps.

This article shows you a small web application created using ASP.NET 2.0, which takes input from user to order a software product.


(1) Open a new web site project.

(2) Add a wizard control to the project from the toolbox. By default you will notice there are 2 steps in the wizard. 


                               

(3) Now we make total four steps to our wizard and rename it as Personal,Company,
     Software, complete.



(4) Now change the step type value for each step from wizard step collection editor.

      

This value determines the type of navigation button that will shown for this step. Choices include Start (shows a Next button), Step (shows Next and Previous button), Finish (Shows a finish and previous button), Complete (shows no button and hide the sidebar, if it enabled).

 

Personal = Start

Computer = Step

Software = Finish

Complete = Complete


(5) Now let us add some controls for each step.
   
For the first step we will add the personal profile



           

Preferred Programming Language

<asp:DropDownList ID="DropDownList2" runat="server" Style="z-index:100; left: 481px;position: absolute; top: 160px" OnSelectedIndexChanged= "DropDownList2_SelectedIndexChanged">

<asp:ListItem>c#</asp:ListItem>

<asp:ListItem>vb</asp:ListItem>

<asp:ListItem>j#</asp:ListItem>

<asp:ListItem>c</asp:ListItem>

</asp:DropDownList>                              

 

For the second step we will add the company profile



 

<asp:WizardStep runat="server" Title="Company" StepType="Step">

No. of Employees

<asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left: 409px; position: absolute;top: 51px"></asp:TextBox>

No. of Locations
<asp:TextBox ID="TextBox2" runat="server" Style="z-index: 102; left: 411px; position: absolute;top: 140px"></asp:TextBox></asp:WizardStep>


For the third step we will add the software profile


<asp:WizardStep runat="server" Title="Software Profile" StepType="Finish">

SOFTWARE PROFILE

Licenses Required

<asp:CheckBoxList ID="CheckBoxList1" runat="server" Style="z-index: 100; left: 277px;position: absolute; top: 106px">

<asp:ListItem>visual studio</asp:ListItem>

<asp:ListItem>office</asp:ListItem>

<asp:ListItem>2003 server</asp:ListItem>

<asp:ListItem>sql server 2005</asp:ListItem>

<asp:ListItem>biz talk 2004</asp:ListItem>

</asp:CheckBoxList>

</asp:WizardStep>

 

For the last step we will add the complete profile



<asp:WizardStep runat="server" Title="complete" StepType="Complete">

Thank for your survey.

your products will be deliverd soon.</asp:WizardStep>  

Finally when you run it in web browser
  



Conclusion

We saw how to use the wizard control provided by ASP.NET 2.0. This is just one of the examples, which I have taken here. We can use the wizard control on most of our pages where we need to use tabs. Wizard is easy to use. I hope this article has been useful to you.        

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Gaurav Tomar
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the top 5 tips for understanding .NET
Ricky Leeks presents the top 5 tips for understanding .NET Interoperability. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
Nevron Chart
Become a Sponsor
 Comments
6 Months Free & No Setup Fees ASP.NET Hosting!
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.