How to I check for a null value without the page failing?
Code:
if (Context.Request.Cookies["ErrorMsg"].Value != string.Empty)
{
}
Error Message:
Object reference not set to an instance of an object.
Exception Details:
System.NullReferenceException: Object reference not set to an instance of an object.
...
Go to the complete details ...