Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         string ToPage = Request.QueryString["ToPage"];
         if (ToPage == null)
         {
             ToPage = "1";
         }
         if (!StrRegExp.IsID(ToPage))
         {
             ToPage = "1";
         }
         this.Bind_rptList(Convert.ToInt32(ToPage));
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["admin"] != null)
     {
         admin_go.Text        = "Exit management";
         admin_go.NavigateUrl = "exit.aspx";
     }
     if (!this.IsPostBack)
     {
         string ToPage = Request.QueryString["ToPage"];
         if (ToPage == null)
         {
             ToPage = "1";
         }
         if (!StrRegExp.IsID(ToPage))
         {
             ToPage = "1";
         }
         this.Bind_rptList(Convert.ToInt32(ToPage));
     }
 }
Exemple #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["username"] == null)
     {
         Response.Write("<script>javascript:alert('对不起,请您先登陆!');history.back();</script>");
         Response.End();
     }
     if (!this.IsPostBack)
     {
         string ToPage = Request.QueryString["ToPage"];
         if (ToPage == null)
         {
             ToPage = "1";
         }
         if (!StrRegExp.IsID(ToPage))
         {
             ToPage = "1";
         }
         this.Bind_rptList(Convert.ToInt32(ToPage));
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         string ToPage = Request.QueryString["ToPage"];
         if (ToPage == null)
         {
             ToPage = "1";
         }
         if (!StrRegExp.IsID(ToPage))
         {
             ToPage = "1";
         }
         this.Bind_rptList(Convert.ToInt32(ToPage));
     }
     if (!IsPostBack)
     {
         string sql;
         sql = "select * from book order by id desc";
         getdata(sql);
     }
 }