Advertise with us

How to pass value from one controller to another controller

How to pass value from one controller to another controller
Last updated:1/26/2012 4:45:13 AM

1 Answers

Awadhendra Tiwari
Awadhendra Tiwari

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.

Answer