Pages
Home
Interview
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment