You can share Your data between Controller through Tempdata.write syntax as below-Tempdata[“data”]=username;
Interviews10 answers
How do you share data between controllers?
10 Answers
Rajeev KumarPosted Mar 1, 2023, 8:47 AM EST
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
Sonu GuptaPosted Aug 19, 2019, 2:52 AM EDT
Tempdata[“data”]=”value”;
Bidyasagar MishraPosted Jul 11, 2019, 9:18 PM EDT
Using TempData you can pass data from one controller to another.
Deepak VermaPosted May 21, 2018, 12:24 AM EDT
you can use tempdata . basically teamdata is a property of controllerbase class
Surya Pratap SinghPosted Mar 12, 2018, 12:06 AM EDT
using Tempdata, you can also use Session
Akintunde ChristainPosted Mar 10, 2018, 5:40 PM EST
We can share the data between controller by using TempData["Variable"]=value;
Sandeep KumarPosted Feb 27, 2018, 7:12 PM EST
by using TempData
Ravi PatelPosted Feb 23, 2018, 5:14 PM EST
You can do share / pass data between controllers using TEMPDATA
Naresh SinghalPosted Feb 4, 2018, 11:43 PM EST
Using the $rootScope to add the data on
Gajendra JangidPosted Feb 3, 2018, 12:33 AM EST








