protected void BtnCreUnionUpdate_Click(object sender, EventArgs e) { A2ZCUNIONDTO UpDTO = new A2ZCUNIONDTO(); A2ZMEMBERDTO MemDTO = new A2ZMEMBERDTO(); MemDTO.CreditUnionNo = Converter.GetInteger(txtCreditUNo.Text); MemDTO.MemberName = Converter.GetString(txtCreUName.Text); MemDTO.MemType = 1; UpDTO.CreditUnionNo = Converter.GetInteger(txtCreditUNo.Text); UpDTO.CreditUnionName = Converter.GetString(txtCreUName.Text); if (txtCuOpenDate.Text != string.Empty) { DateTime opdate = DateTime.ParseExact(txtCuOpenDate.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture); UpDTO.opendate = opdate; MemDTO.OpenDate = opdate; } else { UpDTO.opendate = Converter.GetDateTime(System.DateTime.Now.ToLongDateString()); } UpDTO.MemberFlag = Converter.GetSmallInteger(ddlCuMemberFlag.SelectedValue); UpDTO.MemberType = Converter.GetSmallInteger(ddlCuMemberType.SelectedValue); UpDTO.CertificateNo = Converter.GetInteger(txtCuCertificateNo.Text); UpDTO.AddressL1 = Converter.GetString(txtCuAddressL1.Text); UpDTO.AddressL2 = Converter.GetString(txtCuAddressL2.Text); UpDTO.AddressL3 = Converter.GetString(txtCuAddressL3.Text); UpDTO.TelephoneNo = Converter.GetString(txtCuTelNo.Text); UpDTO.MobileNo = Converter.GetString(txtCuMobileNo.Text); UpDTO.Fax = Converter.GetString(txtCuFax.Text); UpDTO.email = Converter.GetString(txtCuEmail.Text); UpDTO.Division = Converter.GetInteger(ddlDivision.SelectedValue); UpDTO.District = Converter.GetInteger(ddlDistrict.SelectedValue); UpDTO.Thana = Converter.GetInteger(ddlThana.SelectedValue); int row = A2ZMEMBERDTO.Update(MemDTO); int roweffect = A2ZCUNIONDTO.UpdateInformation(UpDTO); if (roweffect > 0) { CreditUnionDropdown(); clearInfo(); txtCreditUNo.Text = string.Empty; ddlCuMemberFlag.SelectedValue = "0"; ddlCuMemberType.SelectedValue = "0"; ddlCreditUNo.SelectedValue = "-Select-"; BtnCreUnionUpdate.Visible = false; BtnCreUnionSubmit.Visible = true; txtCreditUNo.Focus(); } }