protected void EBtnBacthSet_Click(object sender, EventArgs e) { if (this.Page.IsValid) { bool flag; string idsFromListBox = this.GetIdsFromListBox(this.LstSpecial); string text = this.TxtGeneralId.Text; if (this.action == "special") { flag = Special.AddContentToSpecialInfos(idsFromListBox, text); } else { flag = Special.AddContentToSpecialInfoByGeneralId(idsFromListBox, text); } if (flag) { AdminPage.WriteSuccessMsg("添加成功!", "SpecialInfosManage.aspx"); } else { AdminPage.WriteErrMsg("添加失败!", "ContentManage.aspx"); } } }