private void DeclineContent() { long lId; bool ret; try { lId = long.Parse(Request.QueryString["id"]); _EkContent = _CommonApi.EkContentRef; string reason = ""; if (! (Request.QueryString["comment"] == null)) { reason = Request.QueryString["comment"]; } ret = System.Convert.ToBoolean(_EkContent.DeclineApproval2_0(lId, reason)); if (Request.QueryString["page"] == "workarea") { //' re-direct to the folder page. Response.Redirect((string) ("approval.aspx?action=viewApprovalList&fldid=" + Request.QueryString["fldid"]), false); // redirect to workarea //Response.Write("<script language=""Javascript"">" & _ // "top.switchDesktopTab();" & _ // "</script>") } else if (Request.QueryString["page"] == "dmsmenu") { // re-direct to the folder page. //Response.Redirect("approval.aspx?action=viewApprovalList&fldid=" & Request.QueryString("fldid"), False) } else { Response.Write("<script language=\"Javascript\">" + "top.opener.location.reload(true);" + "top.close();" + "</script>"); } } catch (Exception ex) { Utilities.ShowError(ex.Message); } }