ASP.NET
  Home arrow ASP.NET arrow Page 2 - A Demo of the Wizard Control in ASP.NET 2....
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

A Demo of the Wizard Control in ASP.NET 2.0
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 19
    2006-08-15

    Table of Contents:
  • A Demo of the Wizard Control in ASP.NET 2.0
  • The Minimum Wizard
  • A Basic Demo
  • Writing Code for the Steps
  • A Display of the Wizard in Action
  • Source Code of the Page

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    A Demo of the Wizard Control in ASP.NET 2.0 - The Minimum Wizard


    (Page 2 of 6 )

    To your web site add a web page, herein called WizHow.aspx. In the Standard controls in the tool box double click the Wizard Control as shown in the next picture.

    This adds the wizard control to your design view of your aspx page as shown in the next picture, with Step 1 highlighted. If you click the little arrow at top left of this control, you get a drop-down detailing the wizard's tasks to be completed.

    .

    When you add this control to your page, the program adds the following source code to your page as shown in the next picture. It basically shows the structure of the wizard with the steps laid out.

    A wizard has to complete a certain number of designed steps, and this happens in this basic, no-frills control with two ready-to-use steps. The wizard runs on the server and so do the steps. As a default, the view with Step 1 is displayed in the design area, which has just one button, the Next button. At run time, if you click on the Next button it should take you to Step 2. If you now click on the hyperlink, Step 2, your design view changes as shown in the picture below.

    Now you have Previous and Finish buttons for navigation. Basically, the Wizard has two places where the user can interact, either the navigation buttons at the bottom of the wizard, or the region where the steps are located. At design time however, clicking on the navigation buttons will open the code that you need to write for them. Additionally you also have a view area shown in the next picture.

    To locate the "View Area" on the wizard you may need to click inside the wizard. This area is a kind of container for other controls, as well as for some textual content which will be associated with that step. The text "Test this wiz" has been added to the view area. This is "a minimum wizard" which is functional. You may note that the page title is carried through the various steps because the page never gets changed. If you right click the Wizard control you can access its extremely feature rich properties as shown in the next picture.

    We shall only choose to modify a few of them, basically the Header text and some styling. We also use the auto-format feature of the wizard as shown in the next picture. Clicking on the small backward pointing arrow at the top of the wizard control, you get the Wizard's task list, and clicking on the hyperlink Auto Format... gets you the Auto Format window, where you can choose the scheme you like. Here the scheme "classic" has been chosen.

    Apart from the "View Area" (container area) there is a header section as well, but the header text is not present in the properties. However you may add the header text 'No body beats the Wiz' into the <asp:wizard/> tag as follows by adding the text as shown into the page source.

    <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" ForeColor="#FF8080" BackColor="#EFF3FB" BorderColor="#B5C7DE" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" HeaderText="No body beats the Wiz">.

    With this addition your user interface has the appearance shown in the next picture, where you can clearly see all the regions in the Wizard Control.

    With this your functioning "minimum wizard" is ready for prime time. Now if you browse this page, you will see the display shown in the next picture, a composite of both Step 1 and Step 2. You may verify for yourself by clicking the various controls and hyper links.

    More ASP.NET Articles
    More By Jayaram Krishnaswamy


       · The wizard control makes it so easy to crate a wizard you would not believe....
     

    ASP.NET ARTICLES

    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...
    - Building an In-Text Advertising System Under...
    - Developing a Mini ASP.NET AJAX Server Centri...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT