protected void btnSave_Click(object sender, EventArgs e) { try { contingency wIns = new contingency(); Int32 IntFlg = wIns.PopulateProjectItemBreakdown(Convert.ToInt32(ViewState["EstNum"].ToString()), txtNumber.Text.Trim(), txtNotes.Text.Trim() ,txtamt.Text.Trim()); Response.Write("<script language='javascript'>parent.location.replace('Whitfield_estimation.aspx?EstNum=" + ViewState["EstNum"].ToString() + "');</script>"); } catch (Exception exp) { Response.Write(exp.Message.ToString()); } }