How to get the value of session in JQuery


Monday, August 2, 2010

Sometime, its possible that you need to compare login session on clientside code only before server side.

You can achive this task by using below code.


var sessionValue = '<%= Session("UserName") %>';
if (sessionValue == 'Rajesh') 
{
Alert("This is Rajesh Singh");
}


Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer

Email: raj143svmit@gmail.com
e-Procurement Technologies Ltd (India)
www.abcprocure.com


1 comment :

Anonymous said...

@oshkosh: Thanks so much for the link... :)