Gopal Singh

Gopal Singh

  • NA
  • 5
  • 601

Problem with tempdata

Jun 30 2016 9:55 AM
Hi
 
I just want to use tempdata value from a custom method but unable to do.
please help me.
 
here i am assigning value 
public void abc(){
 
 TempData["PhoneVarificationMissing"] = "Yes";
 
 
Here I want to access
 
public ActionResult kkk()
{
 aaa obj=new aaa()
 
obj.abc(); 
 
 var a=TempData["PhoneVarificationMissing"];
 
Here I am getting null value 

Answers (6)