//添加事件 public void SubmitAdd() { bool success = info.InfoInsert(DropGroup.SelectedItem.Value, txtTitle.Text.Trim(), content1.InnerText, txtnum.Text.Trim()); if (success) { ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('添加完成!')</script>"); //Initialization(); } else { ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('添加失败!')</script>"); } }