protected void lbtSearchComplaints_Click(object sender, EventArgs e)
 {
     try
     {
         if (Session["propertyvalue"] != null)
         {
             string tc_PropertyVal = Session["propertyvalue"].ToString();
             ListView1.DataSource = uc.GetNewComplaintsbySearch(tc_PropertyVal, txtSearch.Text);
             ListView1.DataBind();
             ListView2.DataSource = uc.GetOngoingComplaintsbySearch(tc_PropertyVal, txtSearch.Text);
             ListView2.DataBind();
             ListView3.DataSource = uc.GetResolvedComplaintsbySearch(tc_PropertyVal, txtSearch.Text);
             ListView3.DataBind();
         }
         else
         {
             Session["propertyvalue"] = "0";
         }
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }