示例#1
0
    protected void btnInActive_Click(object sender, EventArgs e)
    {
        int?fbmid = null;

        if (Request.QueryString["FBMREQUESTID"] != null)
        {
            fbmid = Convert.ToInt32(Request.QueryString["FBMREQUESTID"].ToString());
        }
        else if (Request.QueryString["FBMID"] != null)
        {
            fbmid = Convert.ToInt32(Request.QueryString["FBMID"].ToString());
        }

        int retval = BLL_FBM_Report.FBMMessageInActive(Convert.ToInt32(Session["userid"].ToString()), fbmid);

        //String script = String.Format("alert('FBM has been InActiveted.');window.opener.location.reload(true);window.close();");
        //ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msg", script, true);

        String script = String.Format("window.opener.location.reload(true);window.close();");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgdfd", script, true);
    }