Asp.net MVC TempData Getting Crossed / Mixed Up -


I used TempData to pass data between controllers, two users are working on the same page , Then user will get tempdata value which is created by user 1.

Below you can find the code.

You can please help me to resolve this issue

VDRController.cs

  public ActionResult RedirectToCDR ​​(Long VslMoveId, Long VslVisitId , String VslNm, string ETDDtTmLoc, string statusCd) {// list. & Lt; Long & gt; VslIds = new list & lt; Long & gt; (); String vslIds = VslMoveId + "," + VslVisitId.ToString () + "," + statusCd; TempData ["VslMoveDetails"] = vs. ID; // Date time MyDateTime; //MyDetetime = new dateTime (); On strdatetime = Convert.ToDateTime (ETDDtTmLoc) .ToString ("dd-MMM-yyyy"); TempData ["VslNameETD"] = VSLN + + Return to Redirection; // Return Redirect Action ("Index", "WeselWit"); Return Jason (URL Action ("Index", "CDR"))}  

CDRController.cs

  public ActionResult index () {if (TempData ["VslMoveDetails"] = null) {string vslIds = TempData ["VslMoveDetails"] ToString ();; String [] id = vslIds.Split (new four [] {','}); if (Ids.Length == 3 and & id [0] = null & amp; id [1] = Null!) {ViewBag.VslMove_Id = ID [0]; ViewBag.VslVisit_Id = ID [1]; ViewBag.VisitStatus_Cd = ID [2];}} Return View ();}  

Thanks for the Grimm.

"itemprop =" text ">

Your pages are being cached for the list of file extensions for MVC applications by IIS To include .cshtml which is not allowed to cache, please refer to the following link for the solution to prevent caching. ()


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -