Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set a value in session using javascript

<script type="text/javascript">
function SetUserName()
{
    var userName = "Shahid Bhat";
    '<%Session["UserName"] = "' + userName + '"; %>';
     alert('<%=Session["UserName"] %>');
}
</script>
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #set #session #javascript
ADD COMMENT
Topic
Name
3+5 =