http://stackoverflow.com/questions/15519454/how-can-i-access-session-variables-and-set-them-in-javascript http://shekharshetemcts.wordpress.com/2013/11/27/how-to-access-session-variables-using-javascript-in-asp-net/comment-page-1/#comment-294
<script type="text/javascript" > function showorhide(id) { if (document.getElementById(id).style.display == "none") { document.getElementById(id).style.display = "block"; var idA = id; if (idA == "workdiv3") { //Here i want to Assign the session["Diplay"]="Yes" } } else { document.getElementById(id).style.display = "none"; var idA = id; if (idA == "workdiv3") { //Here i want to Assign the session["Diplay"]="No" } } } </script>
var id = "10"; '<%Session["x"] = "' + id +'"; %>' ; alert('<%=Session["x"] %>');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)