protected void btnDelete_Click(object sender, EventArgs e) { string sellerNick = txtSellerName.Text.Trim(); if (MsgBLL.DeleteMsgHis(sellerNick, txt_StartTime1.Value, txt_EndTime1.Value, drpSendType.SelectedValue)) { Response.Write("<script language='javascript'>alert('删除成功!');</script>"); } else { Response.Write("<script language='javascript'>alert('删除失败!');</script>"); } //重新绑定 MsgDataBind(); }