How to Assign Session variables using Javascript in asp.net -



How to Assign Session variables using Javascript in asp.net -

i want assign session variable using java script. find code works fine

function setusername() { var username = "shekhar shete"; <%session["username"] = "' + username + '"; %>; alert('<%=session["username"] %>'); }

the problem utilize vb.net language , not c#. want have same code vb.net. have suggestion resolve problem?

thanks lot in advance.

for vb.net can rewrite same as

<%session("username") = "' + username + '"%> alert('<%=session("username") %>');

also if want convert piece of code c# vb , can take help : http://www.developerfusion.com/tools/convert/csharp-to-vb

javascript asp.net vb.net session

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -