try { if (Session["USER"] != null) { _PKID = Convert.ToInt32(hshTableSession["UserPKID"]); } else { _PKID = 0; } } catch { Response.Redirect("LoginPage.aspx"); }