protected void Page_Load(object sender, EventArgs e) { if (Session["person"] != null) { int pK = (int)Session["person"]; CustomerName cn = new CustomerName(pK); lblName.Text = cn.CustomerNameFetch(); lblAuto.Text = cn.CustomerVehicleFetch(); } else { Response.Redirect("Default.aspx"); } }