Beispiel #1
0
 protected void bindDivision()
 {
     try
     {
         ddt = objDist.GetDivisionBAL(ddl_State.SelectedValue, ConnKey);
         if (ddt.Rows.Count > 0)
         {
             objCommon.BindDropDownLists(ddldivision, ddt, "division_Name", "division_code", "0");
         }
         else
         {
             ddldivision.Items.Clear();
             ddldivision.Items.Insert(0, new ListItem("Select", "0"));
             ddl_dist_code.Items.Clear();
             ddl_dist_code.Items.Insert(0, new ListItem("Select", "0"));
             ddl_mandal_code.Items.Clear();
             ddl_mandal_code.Items.Insert(0, new ListItem("Select", "0"));
         }
     }
     catch (Exception ex)
     {
         ExceptionLogging.SendExcepToDB(ex, Session["UsrName"].ToString(), Request.ServerVariables["REMOTE_ADDR"].ToString());
         Response.Redirect("~/Error.aspx");
     }
 }