protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { BookManager bll = new BookManager(); List <Book> list = bll.GetModelList(""); foreach (Book item in list) { bll.ChangeStaticPage(item.Id); } Response.Write("<script>alert('生成成功')</script>"); } }