Interviews - C# Corner

Gajendra Jangid
How do you share data between controllers?
By Gajendra Jangid in .NET onFeb 03 2018
  • Naresh Singhal
    Feb, 2018 5

    You can do share / pass data between controllers using TEMPDATA

    • 3
  • Deepak Verma
    May, 2018 21

    Using TempData you can pass data from one controller to another.

    • 1
  • Akintunde Christain
    Mar, 2018 10

    using Tempdata, you can also use Session

    • 1
  • Sandeep Kumar
    Feb, 2018 28

    We can share the data between controller by using TempData["Variable"]=value;

    • 1
  • Ravi Patel
    Feb, 2018 23

    by using TempData

    • 1
  • Gajendra Jangid
    Feb, 2018 3

    Using the $rootScope to add the data on

    • 1
  • Sonu Gupta
    Aug, 2019 19

    Hi, Using with TempData achieve this. More detail visit the following url - https://www.aspsnippets.com/Articles/Pass-send-data-from-one-Controller-to-another-Controller-in-ASPNet-MVC.aspx

    • 0
  • Bidyasagar Mishra
    Jul, 2019 12

    Tempdata[“data”]=”value”;

    • 0
  • Surya Pratap Singh
    Mar, 2018 12

    you can use tempdata . basically teamdata is a property of controllerbase class

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS