首页.aspx.cs
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:1k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using System.Data.OleDb;
  12. public partial class 首页 : System.Web.UI.Page
  13. {
  14.     protected void Page_Load(object sender, EventArgs e)
  15.     {
  16.         Session["GWC_ID"] = "1";
  17.         Session["name"] = null ;
  18.         string strConnection2 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("~/App_Data/zzu.mdb") + ";";
  19.         OleDbConnection conn2 = new OleDbConnection(strConnection2);
  20.         conn2.Open();
  21.         OleDbCommand cmd2 = new OleDbCommand("delete from SpKd", conn2);
  22.         cmd2.ExecuteNonQuery();
  23.         conn2.Close();
  24.     }
  25.     protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
  26.     {
  27.     }
  28. }