hello,
i want to Check session is null or empty on page load.
Thanx in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhishek KumarPosted Oct 13, 2014, 7:22 AM
Please check like this.
if (!string.IsNullOrEmpty(Session["UserID"] as string))
{
//Code
}
Hope this will help , let me know if any issues.
Abhishek
Munesh SharmaPosted Oct 13, 2014, 5:53 AM