Skip to content
Loading
  • Bidyasagar Mishra
    0
    U need to use Tempdata except session for mvc application
    Example: 
    1. public class StudentController : Controller    
    2. {    
    3.     // 1st Request    
    4.     public ActionResult Index()    
    5.     {    
    6.         TempData["name"] = "Usama";    
    7.         TempData["institute"] = "GCUF";    
    8.      
    9.         return View();    
    10.     }    
    11.      
    12.     // 2nd Request    
    13.     public ActionResult Details()    
    14.     {    
    15.         return View();    
    16.     }    
    17.  }  
     
    0
  • Laxmidhar Sahoo
    0
    Hi
    Bidyasagar thanks
    0
  • Mageshwaran R
    0
    Hi,
    Can you check with the below link:
    https://www.codeproject.com/Questions/419377/How-to-create-Session-ID-and-How-to-Store-session 
    0