Gajendra Jangid
How do you share data between controllers?
By Gajendra Jangid in .NET on Feb 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
  • Rajeev Kumar
    Mar, 2023 1

    You can share Your data between Controller through Tempdata.write syntax as below-Tempdata[“data”]=username;

    • 0
  • 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 Job Functions


MOST LIKED QUESTIONS