Passing values from one view to another view.

Total Post:48


 8095  View(s)
Rate this:
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.
  1. Re: Passing values from one view to another view.

    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.



Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.