public void getDDLarezo()
 {
     DDLareazone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLzone.SelectedValue.ToString()), "AreaZone");
     DDLareazone.DataBind();
     DDLareazone.Items.Insert(0, new ListItem("--Select AreaZone--", "0"));
     DDLareazone.Enabled = true;
     DDLareazone.Focus();
 }
示例#2
0
 protected void DDLzone_SelectedIndexChanged(object sender, EventArgs e)
 {
     DDLareazone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLzone.SelectedValue.ToString()), "AreaZone");
     DDLareazone.DataBind();
     DDLareazone.Items.Insert(0, new ListItem("All", "0"));
     DDLareazone.Enabled = true;
     DDLareazone.Focus();
 }
    protected void grdCustDetails_RowEditing(object sender, GridViewEditEventArgs e)
    {
        try
        {
            DDLareazone.Enabled = true;
            DDLarea.Enabled     = true;
            DDLzone.Enabled     = true;
            btnSave.Visible     = true;
            btnSave.Text        = "Update";
            filter.Visible      = false;
            btnSave.Enabled     = true;
            PnlDetails.Visible  = false;
            PnlAdd.Visible      = true;
            repAlfabets.Visible = false;
            TxtCustCode.Enabled = false;
            LblCustId.Text      = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblCustID")).Text;

            TxtCustCode.Text        = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblCustCode")).Text;
            TxtShortForm.Text       = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblShortForm")).Text;
            TxtFamilyCode.Text      = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblFamilyCode")).Text;
            TxtAddress.Text         = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblAddress")).Text;
            TxtZip.Text             = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblZip")).Text;
            TxtPhone1.Text          = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblPhone1")).Text;
            TxtPhone2.Text          = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblPhone2")).Text;
            TxtEmailID.Text         = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblEmailID")).Text;
            TxtCustName.Text        = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblCustName")).Text;
            TxtCreditLimit.Text     = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblCreditLimit")).Text;
            TxtPrincipalName.Text   = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblPrincipalName")).Text;
            TxtPrincipalMobile.Text = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblPrincipalMobile")).Text;
            TxtPrincipalDOB.Text    = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblPrincipalDOB")).Text;
            TxtKeyPersonName.Text   = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblKeyPersonName")).Text;
            TxtKeyPersonMobile.Text = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblKeyPersonMobile")).Text;
            TxtKeyPersonDOB.Text    = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblKeyPersonDOB")).Text;
            TxtAdditinalDis.Text    = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblAdditinalDis")).Text;
            TxtVIPRemark.Text       = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblVIPRemark")).Text;
            TxtMedium.Text          = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblMedium")).Text;
            ChkIsActive.Checked     = ((CheckBox)grdCustDetails.Rows[e.NewEditIndex].FindControl("chkisActive")).Checked;
            LblSuperzone.Text       = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblSuperZoneID")).Text;
            Lblzone.Text            = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblZoneID")).Text;
            LblAreazone.Text        = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblAreaZoneID")).Text;
            LblArea.Text            = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblAreaID")).Text;
            LblCustDetailID1.Text   = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("LblCustDetailID")).Text;
            TxtCustomerType.Text    = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblctype")).Text;
            txtcreditdays.Text      = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblcreditdays")).Text;
            lblrating.Text          = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblcustrating")).Text;
            try
            {
                DDLsuperzone.SelectedValue = LblSuperzone.Text.Trim();
                DDLzone.DataSource         = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(LblSuperzone.Text), "Zone");
                DDLzone.DataBind();
                DDLzone.Items.Insert(0, new ListItem("--Select Zone--", "0"));
                DDLzone.SelectedValue = Lblzone.Text.Trim();

                DDLareazone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(Lblzone.Text), "AreaZone");
                DDLareazone.DataBind();
                DDLareazone.Items.Insert(0, new ListItem("--Select AreaZone--", "0"));
                DDLareazone.SelectedValue = LblAreazone.Text.Trim();

                DDLarea.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(LblAreazone.Text), "Area");
                DDLarea.DataBind();
                DDLarea.Items.Insert(0, new ListItem("--Select Area--", "0"));
                DDLarea.SelectedValue = LblArea.Text.Trim();
            }
            catch { }
            ddLStates.DataSource = Destination.GetDestination(flag);
            ddLStates.DataBind();
            ddLStates.Items.Insert(0, new ListItem("--Select State--", "0"));
            ddLStates.SelectedValue = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblstate1")).Text.Trim();

            ddlCity.DataSource = Destination.GetDestination(Convert.ToString(ddLStates.SelectedValue));
            ddlCity.DataBind();
            ddlCity.Items.Insert(0, new ListItem("--Select City--", "0"));
            ddlCity.SelectedValue = ((Label)grdCustDetails.Rows[e.NewEditIndex].FindControl("lblCity")).Text.Trim();

            DataView dv1 = new DataView(Masterofmaster.Get_MasterOfMaster_ByGroup("CustRating").Tables[0]);
            DdlCustRating.DataSource = dv1;
            DdlCustRating.DataBind();
            DdlCustRating.Items.Insert(0, new ListItem("--Select Rating--", "0"));
            DdlCustRating.SelectedValue = lblrating.Text.Trim();

            DDLCC.DataSource = CustCategory.GetCustomerCategoryMaster("adminCCM");
            DDLCC.DataBind();
            DDLCC.Items.Insert(0, new ListItem("--Select Category--", "0"));
            DDLCC.SelectedValue = ((Label)grdCustDetails.Rows[0].FindControl("lblCMID")).Text.Trim();


            DDLCSC.DataSource = CustCategory.GetCustomerCategoryMaster("adminSubCCM");
            DDLCSC.DataBind();
            DDLCSC.Items.Insert(0, new ListItem("--Select Sub Category--", "0"));
            DDLCSC.SelectedValue = ((Label)grdCustDetails.Rows[0].FindControl("lblCMIDSUB")).Text.Trim();
        }
        catch
        {
        }
    }
示例#4
0
    public void FillForm()
    {
        try
        {
            //DDLareazone.Enabled = true;
            //DDLarea.Enabled = true;
            //DDLzone.Enabled = true;
            //btnSave.Visible = true;
            PnlAdd.Visible = true;
            //PnlAdd.Enabled= false;

            //btnSave.Text = "Update";
            //btnSave.Enabled = true;
            LblCustId.Text           = ((Label)grdCustDetails.Rows[0].FindControl("lblCustID")).Text;
            TxtCustCode.Text         = ((Label)grdCustDetails.Rows[0].FindControl("lblCustCode")).Text;
            TxtShortForm.Text        = ((Label)grdCustDetails.Rows[0].FindControl("lblShortForm")).Text;
            TxtFamilyCode.Text       = ((Label)grdCustDetails.Rows[0].FindControl("lblFamilyCode")).Text;
            TxtAddress.Text          = ((Label)grdCustDetails.Rows[0].FindControl("lblAddress")).Text;
            TxtZip.Text              = ((Label)grdCustDetails.Rows[0].FindControl("lblZip")).Text;
            TxtPhone1.Text           = ((Label)grdCustDetails.Rows[0].FindControl("lblPhone1")).Text;
            TxtPhone2.Text           = ((Label)grdCustDetails.Rows[0].FindControl("lblPhone2")).Text;
            TxtEmailID.Text          = ((Label)grdCustDetails.Rows[0].FindControl("lblEmailID")).Text;
            TxtCustName.Text         = ((Label)grdCustDetails.Rows[0].FindControl("lblCustName")).Text;
            TxtCreditLimit.Text      = ((Label)grdCustDetails.Rows[0].FindControl("lblCreditLimit")).Text;
            TxtPrincipalName.Text    = ((Label)grdCustDetails.Rows[0].FindControl("LblPrincipalName")).Text;
            TxtPrincipalMobile.Text  = ((Label)grdCustDetails.Rows[0].FindControl("LblPrincipalMobile")).Text;
            TxtPrincipalDOB.Text     = ((Label)grdCustDetails.Rows[0].FindControl("LblPrincipalDOB")).Text;
            TxtKeyPersonName.Text    = ((Label)grdCustDetails.Rows[0].FindControl("LblKeyPersonName")).Text;
            TxtKeyPersonMobile.Text  = ((Label)grdCustDetails.Rows[0].FindControl("LblKeyPersonMobile")).Text;
            TxtKeyPersonDOB.Text     = ((Label)grdCustDetails.Rows[0].FindControl("LblKeyPersonDOB")).Text;
            TxtAdditinalDis.Text     = ((Label)grdCustDetails.Rows[0].FindControl("LblAdditinalDis")).Text;
            TxtVIPRemark.Text        = ((Label)grdCustDetails.Rows[0].FindControl("LblVIPRemark")).Text;
            TxtMedium.Text           = ((Label)grdCustDetails.Rows[0].FindControl("LblMedium")).Text;
            ChkIsActive.Checked      = ((CheckBox)grdCustDetails.Rows[0].FindControl("chkisActive")).Checked;
            LblSuperzone.Text        = ((Label)grdCustDetails.Rows[0].FindControl("LblSuperZoneID")).Text;
            Lblzone.Text             = ((Label)grdCustDetails.Rows[0].FindControl("LblZoneID")).Text;
            LblAreazone.Text         = ((Label)grdCustDetails.Rows[0].FindControl("LblAreaZoneID")).Text;
            LblArea.Text             = ((Label)grdCustDetails.Rows[0].FindControl("LblAreaID")).Text;
            LblCustDetailID1.Text    = ((Label)grdCustDetails.Rows[0].FindControl("LblCustDetailID")).Text;
            TxtCustomerType.Text     = ((Label)grdCustDetails.Rows[0].FindControl("lblctype")).Text;
            txtcreditdays.Text       = ((Label)grdCustDetails.Rows[0].FindControl("lblcreditdays")).Text;
            lblrating.Text           = ((Label)grdCustDetails.Rows[0].FindControl("lblcustrating")).Text;
            txtSchAdditionalDis.Text = ((Label)grdCustDetails.Rows[0].FindControl("lblSchAdditionalDis")).Text;
            txtTODValue1.Text        = ((Label)grdCustDetails.Rows[0].FindControl("lblTODValue1")).Text;
            txtTODValue2.Text        = ((Label)grdCustDetails.Rows[0].FindControl("lblTODValue2")).Text;
            txtTODValue3.Text        = ((Label)grdCustDetails.Rows[0].FindControl("lblTODValue3")).Text;
            txtTODDisc1.Text         = ((Label)grdCustDetails.Rows[0].FindControl("lblTODDisc1")).Text;
            txtTODDisc2.Text         = ((Label)grdCustDetails.Rows[0].FindControl("lblTODDisc2")).Text;
            txtTODDisc3.Text         = ((Label)grdCustDetails.Rows[0].FindControl("lblTODDisc3")).Text;
            TxtblkRemark.Text        = ((Label)grdCustDetails.Rows[0].FindControl("Lblblkremark")).Text;
            TxtblkDate.Text          = ((Label)grdCustDetails.Rows[0].FindControl("Lblblkdate")).Text;
            txtUpperlimit.Text       = ((Label)grdCustDetails.Rows[0].FindControl("lblCUL")).Text;
            txtLowerlimit.Text       = ((Label)grdCustDetails.Rows[0].FindControl("lblCLL")).Text;
            chk_splitdc.Checked      = ((CheckBox)grdCustDetails.Rows[0].FindControl("chk_isSplit")).Checked;
            //ReadMe Comment(Zaid Ansari) Any Problem SBUCode Dropdown Bind Find This Method GetSBUCode()
            lblSBUCodeNone.Text = ((Label)grdCustDetails.Rows[0].FindControl("lblSUBCode")).Text == "" ? "0" : lblSBUCodeNone.Text = ((Label)grdCustDetails.Rows[0].FindControl("lblSUBCode")).Text;
            txtPANNo.Text       = ((Label)grdCustDetails.Rows[0].FindControl("lblPan")).Text;
            txtGst.Text         = ((Label)grdCustDetails.Rows[0].FindControl("lblGst")).Text;
            txtStateCode.Text   = ((Label)grdCustDetails.Rows[0].FindControl("lblStateCode")).Text;
            try
            {
                //ReadMe Comment(Zaid Ansari)(Dropdown Bind) Super Zone ,State,City,Category Any Problem Find This Method fillzones()
                ddlSbucode.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown("SBU", "DropDown");
                ddlSbucode.DataBind();
                ddlSbucode.Items.Insert(0, new ListItem("--Seelct SBU Code--", "0"));
                ddlSbucode.SelectedValue = lblSBUCodeNone.Text;

                DDLsuperzone.SelectedValue = LblSuperzone.Text;
                DDLzone.DataSource         = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(LblSuperzone.Text), "Zone");
                DDLzone.DataBind();
                DDLzone.Items.Insert(0, new ListItem("--Select Zone--", "0"));
                DDLzone.SelectedValue = Lblzone.Text.Trim();

                DDLareazone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(Lblzone.Text), "AreaZone");
                DDLareazone.DataBind();
                DDLareazone.Items.Insert(0, new ListItem("--Select AreaZone--", "0"));
                DDLareazone.SelectedValue = LblAreazone.Text.Trim();

                DDLarea.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(LblAreazone.Text), "Area");
                DDLarea.DataBind();
                DDLarea.Items.Insert(0, new ListItem("--Select Area--", "0"));
                DDLarea.SelectedValue = LblArea.Text.Trim();
            }
            catch { }
            ddLStates.DataSource = Destination.GetDestination(flag);
            ddLStates.DataBind();
            ddLStates.Items.Insert(0, new ListItem("--Select State--", "0"));
            ddLStates.SelectedValue = ((Label)grdCustDetails.Rows[0].FindControl("lblstate1")).Text.Trim();

            ddlCity.DataSource = Destination.GetDestination(Convert.ToString(ddLStates.SelectedValue));
            ddlCity.DataBind();
            ddlCity.Items.Insert(0, new ListItem("--Select City--", "0"));
            ddlCity.SelectedValue = ((Label)grdCustDetails.Rows[0].FindControl("lblCity")).Text.Trim();

            DataView dv1 = new DataView(Masterofmaster.Get_MasterOfMaster_ByGroup("CustRating").Tables[0]);
            DdlCustRating.DataSource = dv1;
            DdlCustRating.DataBind();
            DdlCustRating.Items.Insert(0, new ListItem("--Select Rating--", "0"));
            DdlCustRating.SelectedValue = lblrating.Text.Trim();
            ChkBlacklist.Checked        = ((CheckBox)grdCustDetails.Rows[0].FindControl("ChKBList")).Checked;

            //lblboardid.Text = ((Label)grdCustDetails.Rows[0].FindControl("lblboardid")).Text;
            //DDLBoard.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup("Board").Tables[0];
            //DDLBoard.DataBind();
            //DDLBoard.Items.Insert(0, new ListItem("--Select Board--", "0"));
            //DDLBoard.SelectedValue = ((Label)grdCustDetails.Rows[0].FindControl("lblboardid")).Text;
            txtassociation.Text = ((Label)grdCustDetails.Rows[0].FindControl("lblassociation")).Text;
            txtcgp.Text         = ((Label)grdCustDetails.Rows[0].FindControl("lblcgp")).Text;
            txtbuisiness.Text   = ((Label)grdCustDetails.Rows[0].FindControl("lblbuisiness")).Text;

            DDLCC.DataSource = CustCategory.GetCustomerCategoryMaster(flag);
            DDLCC.DataBind();
            DDLCC.Items.Insert(0, new ListItem("--Select Category--", "0"));
            DDLCC.SelectedValue = ((Label)grdCustDetails.Rows[0].FindControl("lblCMID")).Text.Trim();

            DDLCSC.DataSource = CustCategory.GetCustomerCategoryMaster(Convert.ToString(DDLCC.SelectedValue));
            DDLCSC.DataBind();
            DDLCSC.Items.Insert(0, new ListItem("--Select City--", "0"));
            DDLCSC.SelectedValue = ((Label)grdCustDetails.Rows[0].FindControl("lblCMIDSUB")).Text.Trim();
        }
        catch (Exception ex)
        {
        }
    }
示例#5
0
    protected void grdEmpDetails_RowEditing(object sender, GridViewEditEventArgs e)
    {
        try
        {
            pnlEmployeeDetails.Visible = false;
            Panel1.Visible             = true;
            btnSavE.Visible            = false;
            filter.Visible             = false;

            txtempCode.Text = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblEmpcode")).Text;
            //DDLsuperzone.DataSource = SuperZone.GetSuperzonemaster();
            //DDLsuperzone.DataBind();
            // DDLsuperzone.Items.Insert(0, new ListItem("--Select SuperZone--", "0"));
            //
            DDLSDZone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(0, "SDZone");
            DDLSDZone.DataBind();
            DDLSDZone.Items.Insert(0, new ListItem("All", "0"));


            DDLstate.DataSource = Customer_cs.Get_DestinationMaster("state");
            DDLstate.DataBind();
            DDLstate.Items.Insert(0, new ListItem("--Select State--", "0"));
            //
            pnlEmployeeDetails.Visible = false;
            Panel1.Visible             = true;
            LblEmpID.Text  = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblEID")).Text;
            txtFname.Text  = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblFName")).Text;
            txtMname.Text  = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblMiddleName")).Text;
            txtLname.Text  = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblLastName")).Text;
            Rdogender.Text = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblGender")).Text;
            txtDob.Text    = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblDOB")).Text;
            //
            txtphne1.Text   = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblPhone1")).Text;
            txtphne2.Text   = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblPhone2")).Text;
            txtzipCode.Text = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblZip")).Text;
            txtEmail.Text   = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblEmailID")).Text;
            txtAdd.Text     = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblAddress")).Text;

            ///
            DDLSDZone.SelectedValue = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblSDZoneId")).Text;
            DDLsuperzone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLSDZone.SelectedValue.ToString()), "SuperZone1");
            DDLsuperzone.DataBind();
            DDLsuperzone.Items.Insert(0, new ListItem("All", "0"));
            ///
            //
            DDLsuperzone.SelectedValue = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblSuperZoneID")).Text;
            DDLzone.DataSource         = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLsuperzone.SelectedValue.ToString()), "Zone");
            DDLzone.DataBind();
            DDLzone.Items.Insert(0, new ListItem("All", "0"));
            DDLzone.Enabled = true;

            ////
            DDLzone.SelectedValue  = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblZoneID")).Text;
            DDLareazone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLzone.SelectedValue.ToString()), "AreaZone");
            DDLareazone.DataBind();
            DDLareazone.Items.Insert(0, new ListItem("All", "0"));
            DDLareazone.Enabled = true;
            ////
            DDLareazone.SelectedValue = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblAreaZoneID")).Text;
            Chkarea.DataSource        = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLareazone.SelectedValue.ToString()), "Area");
            Chkarea.DataBind();
            Chkarea.Items.Insert(0, new ListItem("All", "0"));
            Chkarea.Enabled = true;
            selectArea(Convert.ToInt32(LblEmpID.Text.Trim()));
            //Chkarea.SelectedValue = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblAreaID")).Text;

            txtDepCode.Text = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblDeptId")).Text;
            string JoinDate        = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblJoinDate")).Text;
            string ResignationDate = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblResignationDate")).Text;
            Chekacv.Checked = ((CheckBox)grdEmpDetails.Rows[e.NewEditIndex].FindControl("chkisActive")).Checked;
            txtjoin.Text    = JoinDate;
            txtResign.Text  = ResignationDate;

            DDLstate.SelectedValue = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblState")).Text;


            DDLcity.DataSource = Customer_cs.Get_DestinationMaster(DDLstate.SelectedValue.ToString());
            DDLcity.DataBind();
            DDLcity.Items.Insert(0, new ListItem("--Select City--", "0"));
            DDLcity.Enabled = true;
            DDLcity.Focus();

            // DDLcity.DataSource = Customer_cs.Get_DestinationMaster(DDLstate.SelectedValue.ToString());
            // DDLcity.DataBind();
            // DDLcity.Items.Insert(0, new ListItem("--Select City--", "0"));
            // DDLcity.Enabled = true;


            DDLcity.SelectedItem.Text = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblCity")).Text;
            imgprof.ImageUrl          = "../Images/profileimg/" + ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblphoto")).Text;
            lblImage.Text             = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("lblphoto")).Text;

            ddlqulification.Text = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblQualification")).Text;
            fillQualification();
            DDlDesignation.Text = ((Label)grdEmpDetails.Rows[e.NewEditIndex].FindControl("LblDesignation")).Text;
            fillDesignation();
        }
        catch
        {
        }
    }