protected void btnSave_Click(object sender, EventArgs e) { try { contingency wIns = new contingency(); Int32 IntFlg = wIns.PopulateDrawingList(Convert.ToInt32(ViewState["EstNum"].ToString()), ddlType.SelectedItem.Value, txtName.Text, txtNumber.Text.Trim(), txtRevision.Text.Trim(), txtfabEndDate.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()); } }