Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6755057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:21:18+00:00 2026-05-26T13:21:18+00:00

i’m using asp.net mvc 2.0 and jqModal to setup a modal wizard. i have

  • 0

i’m using asp.net mvc 2.0 and jqModal to setup a modal wizard.

i have a variable amount of pages based on initial widget type selected.

my initial effort to brainstorm is to use an enum like followed:

public enum WizardSetup
{
    Start,
    Page1,
    Page2,
    Finish
}

how would you page through the enum? again, there may or may not be a page 2 based on widget selected. So in the user interface there would be a back, next, and finish button to cycle through the pages.

i thought of user controls for the different pages and using jqModal’s ajax to load the different pages.

any thoughts on the best way and easiest way to do this paging stuff?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:21:18+00:00Added an answer on May 26, 2026 at 1:21 pm

    A few ways I can think of to skin multistep wizards:

    1. Use some jquery etc to page through divs that exist on the page already. The ones that aren’t currently active are hidden. This is the most trivial but won’t degrade gracefully with no js. Also won’t work well for your dynamic tree of pages. On the plus side you don’t get the pain of trying to pass state between separate actions.

    2. Use ajax forms for each step of the wizard with the next buttons being wired up to actions that generate the appropriate next step. Passing the view model between these actions is tricky. You either have to use hidden fields on the forms, or something like Html.Serialize() in MVC Futures to pass the whole view model object (probably better unless its only a few fields). Also you will run into problems with validation if you are using that and have the actions receive the view model object at each step as it will try to validate fields that haven’t been set at the step of the wizard you are in. This can be worked around with an ActionFilter to remove errors for fields that aren’t relevant at the step you are on. The nice thing about this approach is that it works without js turned on if you use a decent ajax library (even ms unobtrusive ajax).

    3. Create something hand crafted using json payloads back and forth to the server. Will be a lot of effort as you’ll be building the forms client side using js.

    4. Similar to 2, but store the state in a session variable (scale probs with multi server) or in a db etc. Saves having to marshall it back and forth to the browser each time.

    Of course if you don’t need to pass state between the wizard steps it’s a lot easier.

    There is quite a good work through of 2) in the Pro Asp.Net MVC2 book by Steve Sanderson although its a little dated now and it uses an action filter which isn’t needed with the way Html.Serialize works in mvc3 Futures (can deserialise into param of action method).

    Unfortunately, multistep wizards are a bit of a pain as they are intrinsically stateful which is pretty much the opposite goal to which web technology aspires.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I am reading a book about Javascript and jQuery and using one of the
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.