userDel.aspx.cs
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:1k
源码类别:

Email客户端

开发平台:

Visual C++

  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. public partial class manage_sysUser_userDel : System.Web.UI.Page
  12. {
  13.     BaseClass bc = new BaseClass();
  14.     protected void Page_Load(object sender, EventArgs e)
  15.     {
  16.         GridView1.DataSource = bc.GetDataSet("select * from tbUser","tbUser");
  17.         GridView1.DataKeyNames = new string[] {"id" };
  18.         GridView1.DataBind();
  19.     }
  20.     protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
  21.     {
  22.         bc.ExecSQL("delete from tbUser where id='"+GridView1.DataKeys[e.RowIndex].Value+"'");
  23.         GridView1.DataSource = bc.GetDataSet("select * from tbUser", "tbUser");
  24.         GridView1.DataBind();
  25.     }
  26. }