I want to Assign session variable using java script. I find this code that works fine
function SetUserName()
{
var userName = "Shekhar Shete";
<%Session["UserName"] = "' + userName + '"; %>;
alert('<%=Session["UserName"] %>');
}
The problem that i use vb.net as language and not c#. I want have the same code with vb.net. Does anybody have any suggestion to resolve this problem?
Thanks a lot in advance.