suman goud

suman goud

  • NA
  • 176
  • 51.6k

How to save value in session in mvc razor page

Jul 19 2016 6:10 AM
i want to save EmpID  in session, my view code
 
<a href="#@i.EmpID,new{[email protected]}" onclick="">@i.Name</a>
 
<input type='hidden' name="id" formmethod="post" value="@Session["id"][email protected]'" />
 
but EmpID is not saving in session , how to do this 
 

Answers (7)