protected void Page_Load(object sender, EventArgs e)
{
if (DateTime.Today >= Convert.ToDateTime("2021-1-5"))
{
this.btnLogin.Visible = false;
}
if (DateTime.Today >= Convert.ToDateTime("2021-1-6"))
{
Server.Transfer("NoPopedom.htm");
}
if (!Page.IsPostBack)
{
if (Request.Cookies["UserName"] != null || Session["UserName"] != null)
{
//Response.Redirect("index.aspx");
openWindow();
}
else
{
if (Request.Cookies["UserName"] != null)
{
this.txtUid.Text = Request.Cookies["UserName"].Value;
}
}
}
}
各位大哥大姐帮忙看看,这段程序的大概意思是什么,是不是登录权限有日期限制的意思?
{
if (DateTime.Today >= Convert.ToDateTime("2021-1-5"))
{
this.btnLogin.Visible = false;
}
if (DateTime.Today >= Convert.ToDateTime("2021-1-6"))
{
Server.Transfer("NoPopedom.htm");
}
if (!Page.IsPostBack)
{
if (Request.Cookies["UserName"] != null || Session["UserName"] != null)
{
//Response.Redirect("index.aspx");
openWindow();
}
else
{
if (Request.Cookies["UserName"] != null)
{
this.txtUid.Text = Request.Cookies["UserName"].Value;
}
}
}
}
各位大哥大姐帮忙看看,这段程序的大概意思是什么,是不是登录权限有日期限制的意思?