protected void showdata() { if (Session["propertyvalue"] != null) { string PropertyVale = Session["propertyvalue"].ToString(); ListView1.DataSource = uc.GetScheduleVisit(PropertyVale); ListView1.DataBind(); } else { Session["propertyvalue"] = "0"; string PropertyVale = Session["propertyvalue"].ToString(); ListView1.DataSource = uc.GetScheduleVisit(PropertyVale); ListView1.DataBind(); } }