protected void ddlThana_SelectedIndexChanged(object sender, EventArgs e) { try { if (ddlDistrict.SelectedValue != "-Select-" && ddlDivision.SelectedValue != "-Select-" && ddlUpzila.SelectedValue != "-Select-" && ddlThana.SelectedValue != "-Select-") { A2ZTHANADTO getDTO = new A2ZTHANADTO(); int code = Converter.GetInteger(ddlDivision.SelectedValue); int distcode = Converter.GetInteger(ddlDistrict.SelectedValue); int Upzilacode = Converter.GetInteger(ddlUpzila.SelectedValue); int thanacode = Converter.GetInteger(ddlThana.SelectedValue); getDTO = (A2ZTHANADTO.GetInformation(code, distcode, Upzilacode, thanacode)); if (getDTO.DivisionCode > 0 && getDTO.DistrictCode > 0 && getDTO.ThanaCode > 0) { hdnThanaCode.Text = Converter.GetString(getDTO.ThanaCode); hdnThanaOrgCode.Text = Converter.GetString(getDTO.ThanaOrgCode); txtThanaDescription.Text = Converter.GetString(getDTO.ThanaDescription); txtThanaDescription.Focus(); BtnSubmit.Visible = false; BtnUpdate.Visible = true; } } } catch (Exception ex) { throw ex; } }
protected void ddlThana_SelectedIndexChanged(object sender, EventArgs e) { if (ddlThana.SelectedItem.Text == "-Select-") { return; } try { if (ddlDistrict.SelectedValue != "-Select-" && ddlDivision.SelectedValue != "-Select-" && ddlUpzila.SelectedValue != "-Select-" && ddlThana.SelectedValue != "-Select-") { A2ZTHANADTO getDTO = new A2ZTHANADTO(); int code = Converter.GetInteger(ddlDivision.SelectedValue); int distcode = Converter.GetInteger(ddlDistrict.SelectedValue); int thanacode = Converter.GetInteger(ddlThana.SelectedValue); int Upzilacode = Converter.GetInteger(ddlUpzila.SelectedValue); getDTO = (A2ZTHANADTO.GetInformation(code, distcode, Upzilacode, thanacode)); if (getDTO.DivisionCode > 0 && getDTO.DistrictCode > 0 && getDTO.UpzilaCode > 0 && getDTO.ThanaCode > 0) { } } } catch (Exception ex) { throw ex; } }