コード例 #1
0
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        int templateId = 0;

        if (this.hdnTemplateID.Value != "")
        {
            templateId = Convert.ToInt32(this.hdnTemplateID.Value);
        }
        string userCode = this.Session["yhdm"].ToString();

        if (ConferenceManage.AddFromTemplate(templateId, userCode))
        {
            this.Page.RegisterStartupScript("ok", "<script>alert('从模板增加成功!');returnValue=true;top.window.close();</script>");
            return;
        }
        this.Page.RegisterStartupScript("ok", "<script>alert('从模板增加失败!');</script>");
    }