|
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/ |
?#pragma checksum "D:\wwwroot\bgsciences\wwwroot\sysmanage\files\left\coulumlist.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "CD293529BE2E1C4034AC53032DA9A5B3FB1A7142"
#line 1 "D:\wwwroot\bgsciences\wwwroot\sysmanage\files\left\coulumlist.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_coulumlist : 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"]);
DataTable dtcount = SQLServerHelper.ExecuteTable("select * from J_leftcoulum where fid = " + id + "");
if (dtcount.Rows.Count != 0)
{
Response.Write("删除失败,请先删除下属子类");
Response.End();
}
SQLServerHelper.execNonQuery("delete from J_leftcoulum where id = " + id + "");
Response.Write("栏目删除成功");
Response.End();
}
Bind();
BindCount();
}
}
//绑定步骤
private void Bind()
{
this.InfoList.DataSource = sqltool.getData_PageFromTwoTable(this.AspNetPager1.PageSize, this.AspNetPager1.CurrentPageIndex, "*", "J_leftcoulum", "fid = 0", 0, "");
this.InfoList.DataBind();
}
private void BindCount()
{
int count = sqltool.SelectCountByTCW("J_leftcoulum", "*", "fid = 0");
this.AspNetPager1.RecordCount = count;
}
//分页事务
protected void AspNetPager1_PageChanged(object sender, EventArgs e)
{
Bind();
}
}
#line default
#line hidden