Example #1
0
        private void DelRec_Click(object sender, EventArgs e)
        {
            if (base.CheckCookie())
            {
                var rs = AdminVisitLog.Del(Request["deleteMode"], Request["visitid"], Int32.Parse(deleteNum.Text), deleteFrom.SelectedDate);
                if (rs > 0)
                {
                    base.Response.Redirect("forum_adminvisitloggrid.aspx");
                }

                base.RegisterStartupScript("", "<script>alert('您未选中任何选项或输入参数错误!');window.location.href='forum_adminvisitloggrid.aspx';</script>");
            }
        }