//protected void ddlClass_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    string senderType=rbtnSender.SelectedValue.ToString();
        //    if (senderType.Equals("Student"))
        //    {
        //        BindStudentGridData();
        //    }

        //}

        //Bind Staff Grid Data
        #region [Bind Staff Grid Data]

        private void BindStaffGridData()
        {
            try
            {
                EWA_Common objEWA = new EWA_Common();
                BL_Common  objBL  = new BL_Common();

                objEWA.OrgId         = Session["OrgId"].ToString();
                objEWA.UserCode      = Session["UserCode"].ToString();
                objEWA.DesignationId = ddlDesignation.SelectedValue.ToString();
                objEWA.DepartmentId  = ddlDepartment.SelectedValue.ToString();
                DataSet ds = objBL.BindFacultyData_BL(objEWA);
                if (ds.Tables[0].Rows.Count != 0)
                {
                    GrdFacultySender.DataSource = ds;

                    GrdFacultySender.DataBind();
                    GrdFacultySender.Columns[2].Visible = true;
                    dsGrdFacultySender = ds.Copy();
                }
                else
                {
                    ShowEmptyGridView(GrdFacultySender);
                }
            }
            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }
        //Bind Designation
        #region [Bind Designation]

        private void BindDesignation(String strFacultyType)
        {
            try
            {
                EWA_Common objEWA = new EWA_Common();
                BL_Common  objBL  = new BL_Common();

                objEWA.OrgId             = Session["OrgId"].ToString();
                objEWA.DepartmentId      = ddlDepartment.SelectedValue.ToString();
                objEWA.DesignationTypeId = strFacultyType;

                DataSet ds = objBL.BindDesignation_BL(objEWA);

                ddlDesignation.DataSource     = ds;
                ddlDesignation.DataTextField  = "DesignationName";
                ddlDesignation.DataValueField = "DesignationId";
                ddlDesignation.DataBind();
                ddlDesignation.Items.Insert(0, "Select");
                ddlDesignation.SelectedIndex = 0;
                GrdFacultySender.DataSource  = null;
                GrdFacultySender.DataBind();
            }
            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }
        //Faculty Sender Changing
        #region [Faculty Sender Changing]

        protected void GrdFacultySender_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            try
            {
                GrdFacultySender.PageIndex  = e.NewPageIndex;
                GrdFacultySender.DataSource = dsGrdFacultySender;
                GrdFacultySender.DataBind();
            }
            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }
        //Bind Design
        #region [Bind Design]

        private void BindDesignation(String strFacultyType)
        {
            try
            {
                EWA_Common objEWA = new EWA_Common();
                BL_Common  objBL  = new BL_Common();

                objEWA.OrgId             = Session["OrgId"].ToString();
                objEWA.DepartmentId      = ddlDepartment.SelectedValue.ToString();
                objEWA.DesignationTypeId = strFacultyType;

                if (ddlDepartment.SelectedValue != "Select")
                {
                    DataSet ds = objBL.BindDesignation_BL(objEWA);

                    ddlDesignation.DataSource     = ds;
                    ddlDesignation.DataTextField  = "DesignationName";
                    ddlDesignation.DataValueField = "DesignationId";
                    ddlDesignation.DataBind();
                    ddlDesignation.Items.Insert(0, "Select");
                    ddlDesignation.SelectedIndex = 0;

                    GrdFacultySender.DataSource = null;
                    GrdFacultySender.DataBind();
                    if (ds.Tables[0].Rows.Count == 0)
                    {
                        ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Information", "alert('No record present. Select other Department!')", true);
                    }
                }
                else
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Information", "alert('Select Department!')", true);
                }
            }
            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }