private void BindControl()
 {
     objBranchRegion.BusinessLine_Sno = "2";
     objBranchRegion.EmpId            = Membership.GetUser().UserName;
     objBranchRegion.GetUserRegionsMTS_MTO(ddlRegion);
     if (ddlRegion.Items.Count > 0)
     {
         ddlRegion.SelectedIndex = 0;
     }
     if (ddlRegion.Items.FindByValue("8") != null)
     {
         ListItem lstRegion = ddlRegion.Items.FindByValue("8");
         ddlRegion.Items.Remove(lstRegion);
     }
     objBranchRegion.RegionSno = int.Parse(ddlRegion.SelectedValue);
     objBranchRegion.GetUserBranchs(ddlBranch);
     objBranchRegion.BranchSno = int.Parse(ddlBranch.SelectedValue);
     objBranchRegion.GetUserSCs(ddlasc);
     objBranchRegion.GetUserProductDivisions(ddlDivision);
     if (ddlDivision.Items.FindByText("All") != null)
     {
         ddlDivision.Items.FindByText("All").Text = "Select";
     }
     if (ddlasc.Items.Count == 2)
     {
         ddlasc.SelectedIndex = 1;
     }
 }
 protected void BindFilterControl()
 {
     objRSMCancellation.BusinessLine_Sno = "2";
     objRSMCancellation.GetUserRegionsMTS_MTO(ddlRegion);
     if (ddlRegion.Items.Count > 0)
     {
         ddlRegion.SelectedIndex = 0;
     }
     if (ddlRegion.Items.FindByValue("8") != null)
     {
         ListItem lstRegion = ddlRegion.Items.FindByValue("8");
         ddlRegion.Items.Remove(lstRegion);
     }
     objRSMCancellation.RegionSno = int.Parse(ddlRegion.SelectedValue);
     objRSMCancellation.GetUserBranchs(ddlBranch);
     objRSMCancellation.BranchSno = int.Parse(ddlBranch.SelectedValue);
     objRSMCancellation.GetUserSCs(ddlAsc);
     // By Default All Division will be Display
     //objCommonClass.BindProductDivision(ddlProductDivision);
     objRSMCancellation.GetUserProductDivisions(ddlProductDivision);// Added on 16.04.15 By Ashok Kumar
     if (ddlProductDivision.Items.FindByText("Select") != null)
     {
         ddlProductDivision.Items.FindByText("Select").Text = "All";
     }
     if (ddlAsc.Items.Count == 2)
     {
         ddlAsc.SelectedIndex = 1;
     }
 }