Your code needs a slight modification which I think is the issue -
$(document).ready(function () {
$('#mcsreport').click(function () {
if ($('#txtSessionValue').text.toString() == 0) {
window.open("../../Security/FRM/FrmLogin.aspx", "_self");
}
else {
window.open("../../Report/FrmReportMdiMain.aspx", "_self");
}
});
});
Inside if conditional expression -
$('#txtSessionValue').text.toString() == 0
text() should be a function but not a property. Because
every jQuery object relates to an action. So, it should be -
if($('#txtSessionValue').text().toString() == 0)
Hope this will solve your problem.
Thanks