DateTime end=new DateTime(2014,05,23,00,00,00);

DateTime now=DateTime.Now;

int result=DateTime.Compare(end,now);

if(result==-1)

{

        Response.Write("<script>alert('活動結束囉!感謝您的支持!');</script>");

}

else

{

       Server.Transfer("check.aspx");

}

文章標籤
全站熱搜
創作者介紹
創作者 amychang2014 的頭像
amychang2014

工作需要筆記

amychang2014 發表在 痞客邦 留言(0) 人氣(20)