Home > DeveloperSection > Forums > How to pass value from one controller to another controller
venkat gosetty
venkat gosetty

Total Post:15

Points:105
Posted on    January-25-2012 11:50 PM

 ASP.NET MVC ASP.NET MVC 
Ratings:


 1 Reply(s)
 2050  View(s)
Rate this:
How to pass value from one controller to another controller


Awadhendra Tiwari

Total Post:126

Points:882
Posted on    January-26-2012 4:45 AM

Hi Venkat,
You can use many ways to pass value from one view to another view or one controller to another controller. You can use ViewData, ViewBag and TempData dictionary object to pass value.
Here I am giving some links which shows you how to pass value from one view to another view.

1) http://www.mindstick.com/Articles/13768801-20cf-4ff4-b3fa-f7007917b027/?ViewBag%20in%20ASP.NET%20MVC
2) http://www.mindstick.com/Blog/273/Passing%20values%20from%20Controller%20to%20View%20in%20ASP%20NET%20MVC
3) http://www.mindstick.com/Articles/4c3425f7-271d-49c9-b7c5-d5708b9c8ae8/?Testing%20View%20Data%20in%20MVC
4)http://www.mindstick.com/Articles/13768801-20cf-4ff4-b3fa-f7007917b027/?ViewBag%20in%20ASP.NET%20MVC

Hope these links help you.
Thanks.

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

Follow MindStick