How to assign values from form to Javascript session variables
问题 I am trying to create Javascript Session variables that will read information from one form and pass these variables to another form. I can assign strings to these Session variables but i cannot assign values from Form elements to these variables function SetUserName() { <% var text1= "Charles";%> <%Session["UserName"] =text1;%> var session_value='<%=Session["UserName"]%>'; } </script> This is the Javascript on the first page which works and on a button click i call another page where i can