Pages

Tuesday, April 19, 2011

Assign session value in javascript

Here is the code..


 var myvar"Hey Buddy";
'<%Session["temp"] = "' + myvar +'"; %>' ;
alert('<%=Session["temp"] %>');

No comments:

Post a Comment