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

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -