6
Answers

Problem with tempdata

Gopal Singh

Gopal Singh

8y
315
1
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)