suman goud

suman goud

  • 1.9k
  • 176
  • 43.5k

How to save clicked value in session using jquery

Jul 21 2016 2:11 AM
when i click tree view node am getting id by giving alert
 
$('.treeview a').on('click', function () {
alert(this.id);
});
 
but how to save that id session , i want to use in controller 
 i have tried this
 
$('.treeview a').on('click', function () {
@Session["id"]=this.id;
});
 
but am not getting value 

Answers (6)