liuyuqi-dellpc 8 years ago
parent
commit
bcbc3e16d4
3 changed files with 8 additions and 1 deletions
  1. 0 1
      App_Code/AccessHelper.cs
  2. 8 0
      Default.aspx.cs
  3. BIN
      UpgradeLog.htm

+ 0 - 1
App_Code/AccessHelper.cs

@@ -16,7 +16,6 @@ public class AccessHelper
 
     public AccessHelper()
     {
-        //  string connStr = WebConfigurationManager.ConnectionStrings["connStr"].ToString();
         string connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|db.mdb";
         conn = new OleDbConnection(connStr);
     }

+ 8 - 0
Default.aspx.cs

@@ -18,11 +18,19 @@ public partial class _Default : System.Web.UI.Page
             bindrep();
         }
     }
+    /// <summary>
+    /// 页面翻页触发事件
+    /// </summary>
+    /// <param name="sender"></param>
+    /// <param name="e"></param>
     protected void anp_PageChanged(object sender, EventArgs e)
     {
         bindrep();
     }
 
+    /// <summary>
+    /// 绑定分页
+    /// </summary>
     private void bindrep()
     {
         int pagesize = anp.PageSize;

BIN
UpgradeLog.htm