protected void Submit_Click(object sender, EventArgs e) { saveLocal(); Loans2Function i = new Loans2Function(); i.Save(l); try { loan.Submit(l); } catch (Exception ex) { visabaleStep(ex.Message.Split('@')[1], ex.Message.Split('@')[0]); } }
protected void Submit_Click(object sender, EventArgs e) { updateDetails(); try { loan.Submit(l); } catch (Exception ex) { string id = ""; if (ex.Message.Split('@').Length > 2) { id = ex.Message.Split('@')[2]; } visabaleStep(ex.Message.Split('@')[1], ex.Message.Split('@')[0], id); } }