Home > DeveloperSection > Forums > Passing values from one view to another view.
James Smith

Total Post:48

Points:336
Posted on    September-07-2011 1:06 AM

 ASP.NET MVC ASP.NET MVC 
Ratings:


 1 Reply(s)
 5234  View(s)
Rate this:
Hi....
I want to pass values of one view to another view in mvc. For example suppose I have a view which have fields EmployeeID and EmployeeName. When I click on Submit button then those values will display on another page.
I can do it by using ViewData or ViewBag property but I would like to do it without help of these properties.

Please help me.


Chris Anderson
Chris Anderson

Total Post:65

Points:455
Posted on    September-09-2011 12:35 AM

Hello James,

You can use Model class properties or objects to pass data from one view to another instead of using ViewBag, ViewData and TempData properties.

Thanks.


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

Follow MindStick