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

  • Home
  • SEARCH
  • 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 8486645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:00:21+00:00 2026-06-10T21:00:21+00:00

I have a multi-step data entry form in my ASP.NET MVC application. When the

  • 0

I have a multi-step data entry form in my ASP.NET MVC application.

When the information is posted, the input values are checked and if I determine that some related data is required (e.g. a purchase order references a supplier that does not exist) I redirect to another action so that the user can enter the extra data.

I do not want the values that have already been entered by the user to be lost between pages so I am passing these to the second action method using a viewModel. The data is contained in hidden inputs on the second page so that the user can not see them.

This works fine except I end up with a URL that looks something like this:

myDomain/RFQ/CreatePart?PartNumber=Skateboard&Supplier=Bobs%20skateboards&DateCreated=08%2F28%2F2012%2000%3A00%3A00&DateRequired=08%2F28%2F2012%2000%3A00%3A00&Quantities=1%2C%203%20%26%205%20off

I have tried simply returning a view instead of redirecting which gives me the URL Like this:

myDomain/RFQ/CreatePart

However, this gives me the problem of the user being able to repost the values by refreshing the browser as I am now no longer following the post, redirect, Get pattern.

Is there a way of properly using the Post-Redirect-Get pattern whilst maintaining the cleaner URL?


Update 29th September 2012

I investigated the options listed below and have decided on using SessionState for the time being as this allows me to store intermediate data until the user has finished their transaction whilst allowing me to use the post-redirect-get pattern with a clean URL.

I was actually aware of SessionState prior to asking this question but unfortunately some of the information I had read about it had led me to believe this was not the best solution (most articles cite poor performance but rarely provide any evidence of this or explain why).

Having read this article I now understand SessionState a lot better.

  • 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-06-10T21:00:23+00:00Added an answer on June 10, 2026 at 9:00 pm

    Options are as follows (order does not imply better or worse)

    1. Add the values to TempData and they will be available until they are read on the next request by that user and then automatically cleared.
    2. Save the intermediate steps to the database.
    3. Save the intermediate steps In the Cache (if the data is shared amongst users).
    4. Save the intermediate steps to the SessionState (if the data is per-user).
    5. who cares in this case if it’s an ugly intermediate URL?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-step form in an iOS application. To retain my data for
I'm using ASP.NET MVC 3 code-first and I have added validation data annotations to
I have a multi-step file import process. I have a hidden form input in
I have a multi-step order form built in this manner: Step 1: Choose category
I have a multi-step form where the form on Step3 submits to Step4.php. Step4
I have got a the following problem: I have got multi-step form where in
I'm doing a multi step form (form wizard) and I have splitted the form
I have a multi-step form in which i have to choose an image in
I have a multi-step form and user can navigate to any page to modify
I have a multi-step form that I set up in rails 3 using this

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.