Wednesday, July 6, 2011

Get Session value With Jquery In Asp.net


    
   

$(document).ready(function () {
$("#ContentPlaceHolder1_Btnpos​t").click(function () {

var val = '<%=Session["UserID"]%>';

if (val != '') {

return true;
}
else {
alert('Please Login First Before Post Comment.');
return false;
}

});
});