protected void btnAddHelp_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; if (help.AddHelpInfo(helpinfo) == 1) { Page.ClientScript.RegisterStartupScript(this.GetType(), "", WebUnitily.AlertUrl("添加网站帮助成功!")); } else { Page.ClientScript.RegisterStartupScript(this.GetType(), "", WebUnitily.AlertUrl("添加网站帮助失败,请您检查!")); } txtHelpTitle.Text = ""; txtContent.Text = ""; }