protected void Page_Load(object sender, EventArgs e)
        {
            HyperLink activeHyp = Master.FindControl("HypComplaint") as HyperLink;

            activeHyp.CssClass += " active";
            PendingGridView();
            ApprovedGridView();
            if (Request.QueryString["register"] == "1")
            {
                if (Request.QueryString["ComplaintID"] != null)
                {
                    RegeneratedArea.CssClass = " my-3";
                    txtParentID.Text         = Request.QueryString["ComplaintID"];
                }

                lblTitle.Text = "Register Your Complaint";
                PanelRegisterComplaint.CssClass = " ";
            }
            if (Request.QueryString["Active"] == "1")
            {
                lblTitle.Text = "Active Complaints";
                PanelPendingComplaint.CssClass = " ";
            }
            if (Request.QueryString["closed"] == "1")
            {
                lblTitle.Text = "Closed Complaints";
                PanelApprovedComplaint.CssClass = " ";
            }
            using (PTCLEntities db = new PTCLEntities())
            {
                if (IsPostBack == true)
                {
                    return;
                }
                ddlComplaint.SelectedValue = "7";
                var ComplaintTypes = db.GetComplaintType().ToList();
                ddlComplaint.DataSource     = ComplaintTypes;
                ddlComplaint.DataTextField  = "ComplaintTypeName";
                ddlComplaint.DataValueField = "ComplaintTypeID";
                ddlComplaint.DataBind();
            }
        }