Beispiel #1
0
        protected void BtnUpdate_Click(object sender, EventArgs e)
        {
            if (ddlDistrict.SelectedValue != "-Select-" && ddlDivision.SelectedValue != "-Select-" && ddlUpzila.SelectedValue != "-Select-")
            {
                A2ZUPZILADTO UpDTO = new A2ZUPZILADTO();
                UpDTO.DivisionCode      = Converter.GetInteger(hdnDiviCode.Text);
                UpDTO.DistrictCode      = Converter.GetInteger(hdnDistCode.Text);
                UpDTO.UpzilaCode        = Converter.GetInteger(hdnUpzilaCode.Text);
                UpDTO.DivisionOrgCode   = Converter.GetInteger(hdnDiviOrgCode.Text);
                UpDTO.DistrictOrgCode   = Converter.GetInteger(hdnDistOrgCode.Text);
                UpDTO.UpzilaOrgCode     = Converter.GetInteger(hdnUpzilaOrgCode.Text);
                UpDTO.UpzilaDescription = Converter.GetString(txtUpzilaDescription.Text);


                int roweffect = A2ZUPZILADTO.UpdateInformation(UpDTO);
                if (roweffect > 0)
                {
                    UpzilaDropdown();

                    clearInfo();
                    gvDetail();
                    gvDetailInfo.Visible = false;

                    BtnSubmit.Visible = true;
                    BtnUpdate.Visible = false;
                    txtUpzilaDescription.Focus();
                }
            }
        }