hi, here is my sample code. i m checking the code for null user ID, still it is getting executed....!
if (!IsPostBack == true && Request.Cookies["UserID"] != null)
{
string userID = Request.Cookies["UserID"].Value;
myPageBL.GetFriendRequests(userID); // this can never be null, but is taking null
}