Exemplo n.º 1
0
    protected void btnUpdateHelp_Click(object sender, EventArgs e)
    {
        L_ShowHelpInfo helpinfo = new L_ShowHelpInfo();

        helpinfo.HelpTitle       = txtHelpTitle.Text.Trim();
        helpinfo.ClassID         = ddlhelpClassName.SelectedIndex;
        helpinfo.ClassName       = ddlhelpClassName.SelectedItem.ToString();
        helpinfo.HelpCntent      = txtContent.Text.Trim();
        helpinfo.ParentIDRoute   = "1";
        helpinfo.ParentNameRoute = "买家帮助";
        helpinfo.PostTime        = DateTime.Now;
        helpinfo.IsPost          = 1;

        helpinfo.HelpID = Int32.Parse(Request.QueryString["helpID"]);
        if (help.ModifyHelpInfo(helpinfo) == 1)
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "", WebUnitily.AlertUrl("修改网站帮助成功!", "ManageHelpInfo.aspx"));
        }
        else
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "", WebUnitily.AlertUrl("修改网站帮助失败!"));
        }
    }