I have a form in Asp.Net with 3 pages by going with a next button to the next page. What I've done so far in C# is I created sessions like this:
Session["FirstName"] = txtFirst.Text;
Session["LastName"] = txtLast.Text;
Than what I did is on that Next button I called a javascript function where I tried to access these sessions like this:
<script type="text/javascript">
var fn = '<%=Session["FirstName"]%>';
var ln = '<%=Session["LastName"]%>';
</script>
But it's not working, when I am debugging it gets exactly what we entered inside quotes: http://prntscr.com/ag3wdo