Click here to Skip to main content
Click here to Skip to main content

Tagged as

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

, 12 Jul 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
How to Create an ASP.NET Wizard Interface in ASP.NET MVC & WebForms

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:

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:

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)

Share

About the Author

Mehul Harry
Web Developer
United States United States
.Net, C#, SQL, Delphi

Comments and Discussions

 
GeneralMy vote of 1 PinmemberHodaShiraz27-Jun-14 3:56 
QuestionMigrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms Pinmemberinteliarchs16-Sep-13 11:04 
AnswerRe: Migrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms PinmemberMehul_Harry17-Sep-13 10:25 
GeneralRe: Migrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms Pinmemberinteliarchs21-Sep-13 4:57 
GeneralRe: Migrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms PinmemberMehul_Harry25-Sep-13 10:13 
GeneralRe: Migrate from ASP.NET 4.0 WebForms to DevX ASP.NET MVC using WebForms Pinmemberinteliarchs30-Sep-13 15:10 

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

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

| Advertise | Privacy | Mobile
Web03 | 2.8.141015.1 | Last Updated 12 Jul 2013
Article Copyright 2013 by Mehul Harry
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid