Khargesh Rajput

Khargesh Rajput

  • 321
  • 5.6k
  • 605.8k

session value is undefined in javascript

Nov 28 2014 5:46 AM
I am getting session value is undefined .
 window.onload = function () {


var mySessionVar = '<%#HttpContext.Current.Session("lnUserID")%>';

alert(mySessionVar.value);

}
 
 
how to get session value using javascript

Answers (4)