Click here to Skip to main content
15,893,594 members
Articles / Web Development / ASP.NET
Article

How to Create an ASP.NET Wizard Interface in ASP.NET MVC & WebForms

Rate me:
Please Sign up or sign in to vote.
3.29/5 (3 votes)
12 Jul 2013CPOL1 min read 24.8K   12   6
How to Create an ASP.NET Wizard Interface in ASP.NET MVC & WebForms

This article is for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers

Introduction

Check out this slick Code Central example on how to create a Wizard interface in ASP.NET using DevExpress ASP.NET controls. First, here's a glimpse of what it looks like:

Image 1

Pretty cool, huh? And it works for both ASP.NET MVC and WebForms! Check out the Code Central solutions here: 

How's it work?

This wizard interface is a great example because it uses several of the controls from the DXperience ASP.NET subscription:

  • ASPxPageControl, ASPxPopupControl, ASPxMenu (part of ASPxperience)
  • ASPxCheckBox, ASPxLabel, ASPxTextBox, ASPxDateEdit, ASPxComboBox, ASPxButton, ASPxValidationSummary (part of ASPxEditors)

At the heart of the sample, the ASPxPageControl controls the views before the end-user can move forward to the next view. And the DevExpress ASP.NET editors will ensure validation before the end-user can move forward.

AJAX Callbacks FTW!

DevExpress ASP.NET controls have AJAX callbacks built-in so there is no whole-page refresh. And the client-side API makes it seamless to do things like show the popup control. For example, here's the code for the final "Finish" button that displays the popup with the information entered on the previous views/screens:

JavaScript
function OnFinishClick(s, e) {
    if (ASPxClientEdit.ValidateGroup('groupTabContact')) {
        var str = '<b>Personal Info:</b><br />' + txtFirstName.GetValue() + '<br />' + txtLastName.GetValue() + '<hr />';
        str += '<b>Date Info:</b><br />' + getShortDate(deAnyDate.GetValue().toString()) + '<br />' + cbStates.GetValue() + '<hr />';
        str += '<b>Contact Info:</b><br />' + txtEmail.GetValue() + '<br />' + txtZipcode.GetValue() + '<hr />';
        popupControl.SetContentHtml(str);
        popupControl.ShowAtElement(pageControl.GetMainElement());
    }
}

Try out the wizard samples for ASP.NET MVC and WebForms today and then incorporate them into your ASP.NET websites. Thanks!

DXperience? What's That?

DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
.Net, C#, SQL, Delphi

Comments and Discussions

 
GeneralMy vote of 1 Pin
HodaShiraz27-Jun-14 3:56
HodaShiraz27-Jun-14 3:56 
QuestionMigrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms Pin
inteliarchs16-Sep-13 11:04
inteliarchs16-Sep-13 11:04 
AnswerRe: Migrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms Pin
Mehul_Harry17-Sep-13 10:25
Mehul_Harry17-Sep-13 10:25 
GeneralRe: Migrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms Pin
inteliarchs21-Sep-13 4:57
inteliarchs21-Sep-13 4:57 
GeneralRe: Migrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms Pin
Mehul_Harry25-Sep-13 10:13
Mehul_Harry25-Sep-13 10:13 
GeneralRe: Migrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms Pin
inteliarchs30-Sep-13 15:10
inteliarchs30-Sep-13 15:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.