918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/712bd9e6/ca967f19/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/712bd9e6/ca967f19/App_Web_l0cr3nog.1.cs
?#pragma checksum "D:\wwwroot\bgsciences\wwwroot\sysmanage\files\left\managelist.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "62C6A03326C75234265BBF8CCBA5DB9B6B9B5628"

#line 1 "D:\wwwroot\bgsciences\wwwroot\sysmanage\files\left\managelist.aspx.cs"
using System;
using System.Collections;
using System.Configuration;
using System.Data;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;


public partial class sysmanage_files_left_managelist : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        login.OnLine();

        if (!IsPostBack)
        {
            //if (Session["UserName"] == null)
            //{
            //    Page.Response.Write("<script language='javascript'> top.window.location = '../../login.aspx' </script>");
            //}
            if (Request.Form["Option"] != null && Request.Form["Option"] != "")
            {
                int id = Convert.ToInt32(Request.Form["id"]);
                if (id == 1)
                {
                    Response.Write("初始治理员不能被删除");
                    Response.End();
                }
                else
                {
                    SQLServerHelper.execNonQuery("delete from S_Users where id = " + id + "");
                    Response.Write("用户删除成功");
                    Response.End();
                }


            }
            Bind();
            BindCount();
        }
    }
    //绑定步骤
    private void Bind()
    {
        this.InfoList.DataSource = sqltool.getData_PageFromTwoTable(this.AspNetPager1.PageSize, this.AspNetPager1.CurrentPageIndex, " * ", "S_Users", "1=1", 0, "");
        this.InfoList.DataBind();
    }
    private void BindCount()
    {
        int count = sqltool.SelectCountByTCW("S_Users", "*", "1=1");
        this.AspNetPager1.RecordCount = count;
    }
    //分页事务
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        Bind();
    }
}


#line default
#line hidden