protected void Page_Load(object sender, EventArgs e) { Response.Expires = 0; Response.AddHeader("pragma", "no-cache"); Response.AddHeader("Cache-Control", "no-cache, must-revalidate"); if (CheckTimeout.IsEnd()) { Response.Redirect("Default.aspx"); } else { if (Session["Event_IDNo"] == null) { Message.Show(this.Page, "請先登入!!", "Default.aspx"); } else { if (!IsPostBack) { CheckGameLog(); } } } }
protected void Page_Load(object sender, EventArgs e) { if (CheckTimeout.IsEnd()) { Response.Redirect("Default.aspx"); } else { if (!IsPostBack) { this.ibtSearch.Attributes.Add("onmouseover", "ChangeImg( this, 'image/03buttonb01.png');"); this.ibtSearch.Attributes.Add("onmouseout", "ChangeImg( this, 'image/03buttonb.png');"); this.ibtPrize.Attributes.Add("onmouseover", "ChangeImg( this, 'image/web03button03a.png');"); this.ibtPrize.Attributes.Add("onmouseout", "ChangeImg( this, 'image/web03button03.png');"); } } }