Home > DeveloperSection > Forums > ASP.NET MVC HttpPost posting null model
Goti Bandu

Total Post:119

Posted on    November-30-2014 10:11 PM

 ASP.Net ASP.NET MVC  Mvc  Http Post 

 1 Reply(s)
 1024  View(s)
Rate this:

Form posts from webpage MakeBooking to FinalBooking to ascertain certain information such as number of guests, so the FinalBooking page can give you enough textboxes to input guest information for all guests required.


When in debug mode, both models in MakeBooking post are populated. After post, in FinalBooking, model is null.



    public ActionResult MakeBooking(BookingModel model)


        return RedirectToAction("FinalBooking", "Booking", new { model = model });



    public ActionResult FinalBooking(BookingModel model)


        return View(model);


Any info would be appreciated.

Kamlakar Singh
Kamlakar Singh

Total Post:194

Posted on    December-01-2014 7:17 AM

It should work

return RedirectToAction("FinalBooking", "Booking", model);

Don't want to miss updates? Please click the below button!

Follow MindStick