managesys/admin_dw.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using System.IO;
using System.Text;
public partial class dw : System.Web.UI.Page
{
OleDbConnection conn = dbcon.createconnection();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["enteruser"] == null || Session["enteruser"].ToString() == "")
{
Response.Write("<script>alert('对不起,您未登陆或者登陆超时!!!');window.top.self.location='login.aspx';</script>"); return;
}
if (Session["flag"].ToString().IndexOf("0") < 0)
{
Response.Write("<script>alert('对不起,您没有操作权限!');history.go(-1);</script>"); return;
}
if (!IsPostBack)
{
this.BindData();
}
}
protected void BindData()
{
conn.Open();
OleDbDataAdapter das = new OleDbDataAdapter();
das.SelectCommand = new OleDbCommand("select * from dw", conn);
DataSet ds = new DataSet();
das.Fill(ds, "moba");
this.GridView1.DataKeyNames = new string[] { "id" };
this.GridView1.DataSource = ds.Tables["moba"];
this.GridView1.DataBind();
conn.Close();
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
try
{
this.GridView1.PageIndex = e.NewPageIndex;
}
catch
{
this.GridView1.PageIndex = 0;
}
this.BindData();
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
后面还有 89 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
