protected void btnSetOverdue_Click(object sender, EventArgs e) { string[] values = Request.Form.GetValues("cbxSelect"); string msg = ""; if (values == null) { return; } Tz888.BLL.Info.MainInfoBLL bll = new Tz888.BLL.Info.MainInfoBLL(); foreach (string str in values) { long InfoID = Convert.ToInt64(str); if (!bll.SetValidateTerm(InfoID, 0)) { msg += "[" + InfoID.ToString() + "]设置过期失败!\n"; } } if (!string.IsNullOrEmpty(msg)) { Tz888.Common.MessageBox.Show(this.Page, msg); } }