try { DateTime dt = DateTime.Parse("2016-06-06 00:00:00"); if (DateTime.Now > dt) { //throw new Exception(dt2.ToString()); Response.Redirect("Login.aspx"); return; } } catch (Exception ex) { //ClientScript.RegisterStartupScript(ClientScript.GetType(), "", ""); Response.Redirect("Login.aspx"); return; }
亲,沙发正空着,还不快来抢?
我要评论 / 展开表单