protected void AddInq_Click(object sender, EventArgs e) { try { Inquiries inq = new Inquiries(Bnametxt.Text, InqDate.Value, REmDAtetxt.Value, Btype.Text, CInformation.Text, "0"); loan.AddInquiries(inq); l.InqList.Add(inq); popInqs(); } catch (Exception ex) { error3.Text = ex.Message.Split('@')[0]; } Bnametxt.Text = ""; InqDate.Value = ""; REmDAtetxt.Value = ""; Btype.Text = ""; CInformation.Text = ""; AddInq.Text = "Add"; }
protected void AddInq_Click(object sender, EventArgs e) { try { string ind; if (InqDate.Value == "") { ind = InqDateChange.Text; } else { ind = InqDate.Value; } string rem; if (REmDAtetxt.Value == "") { rem = REmDAteChange.Text; } else { rem = REmDAtetxt.Value; } Inquiries inq = new Inquiries(Bnametxt.Value, ind, rem, Btype.Value, CInformation.Value, "0"); inq.Id = loan.getIdDynamicInq(l.InqList); loan.AddInquiries(inq); l.InqList.Add(inq); popInqs(); } catch (Exception ex) { error3.Text = ex.Message.Split('@')[0]; } Bnametxt.Value = ""; InqDate.Value = ""; REmDAtetxt.Value = ""; Btype.Value = ""; CInformation.Value = ""; AddInq.Text = "Add"; }