protected void btnSave_Click(object sender, EventArgs e) { try { contingency wIns = new contingency(); Int32 IntFlg = wIns.PopulateContingency(ddlGroup.SelectedItem.Value,txtdesc.Text.Trim()); Response.Write("<script language='javascript'>parent.location.replace('master_contingency.aspx');</script>"); } catch (Exception exp) { Response.Write(exp.Message.ToString()); } }