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 7656545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:47:30+00:00 2026-05-31T12:47:30+00:00

Can anyone help with transferring form from one view to another in MVC3/C#? Here

  • 0

Can anyone help with transferring form from one view to another in MVC3/C#?

Here is the scenario:

1) I have create page where i have about 6 field for user to enter once user submit that field it will redirect them to review page.

2) Once user come on the review page, the information he entered in the create page should appear there (for user to confirm).

3) There will be a edit button on the review page so if the user clicks on the edit button then he should go back to the create page where he had entered all information, so he can update them again.

Can we handle this scenario using ViewData/ViewBag or partial view? I don’t know how to do that.

  • 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-31T12:47:32+00:00Added an answer on May 31, 2026 at 12:47 pm

    You should create a class in your Models folder, let’s call it MyViewModel, and you’ll define in that class all the 6 property you need the user to edit.
    In the create view, you’ll present all your input field inside a form element defined to postback to your review action. The significant part of your view, will be:

    @model MyViewModel
    @using (Html.BeginForm("Review", "MyController"))
    {
       //here there's your input field
       @Html.TextBoxFor(m => m.prop1)
       // and so on
    }
    

    In MyController class, you’ll have the Review method defined as following

    public ActionResult Review(MyModel mm) 
    {
        if (ModelState.IsValid)
        {
            return View(mm);
        } else return RedirectToAction("Create");
    }
    

    And at last, in your Review view, you’ll have:

     @model MyViewModel
     //show up all the field to be reviewed
     @Html.DisplayFor(m=>m.prop1)
     //and so on
     // now a form to pastback again all the data to the edit page
     @using (Html.BeginForm("Edit", "MyController"))
     {
       //here there's your hidden field
       @Html.HiddenFor(m => m.prop1)
       // and so on
       <input type="submit" value="Re-edit the fields"/>
     }
    

    Your controller class MyController will have the following code:

    public class ViaggioController : Controller
    {
    public ActionResult Create() 
    {
        var emptyModel = new MyViewModel();
        return RedirectToAction("Edit", new { mm = emptyModel });
    }
    public ActionResult Edit(MyViewModel mm) 
    {    
        return View(mm);
    }
    
    public ActionResult Review(MyViewModel mm) 
    {
        if (ModelState.IsValid)
        {
            return View(mm);
        } 
        else 
            return RedirectToAction("Create");
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone help? I have an issue with calling a asp.net webservice from jquery..
can anyone help please. I have a form generated dynamically, when it is submitted
can anyone help me out with one query? i have a DB that looks
Can anyone help? I have been designing a site using Javascript but the rest
Can anyone help? I have been using the entity framework and its going well
can anyone help? I have a simple html file which i am filling via
Can anyone help me as what is going wrong here? Am not able to
Can anyone help me to create a simple viewing of cam using just a
Can anyone help me create an android layout like the image below. It has
can anyone help me with my problem. I need to create a sql rule

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.