Admin/Edituser.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LTP.Common;
using System.Data;
public partial class user_Edituser : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string userName = Convert.ToString(Session["userName"]);
//=Convert.ToString(Session["qx"]);
if (userName == "")
{
Response.Redirect("index.aspx");
}
if (!IsPostBack)
{
string sql = "select * from [user]";
DataView dv = DB.getdataset(sql).Tables[0].DefaultView;
PagedDataSource pds = new PagedDataSource();
AspNetPager1.RecordCount = dv.Count;
pds.DataSource = dv;
pds.AllowPaging = true;
pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
pds.PageSize = AspNetPager1.PageSize;
this.GridView1.DataSource = pds;
this.GridView1.DataBind();
}
}
protected void btnAdd_Click(object sender, EventArgs e)
{
string strErr = "";
if (this.txtadmin.Text == "")
{
strErr += "用户名不能为空!\\n";
}
if (this.txtpass.Text == "")
{
strErr += "密码不能为空!\\n";
}
if (strErr != "")
{
MessageBox.Show(this, strErr);
return;
}
// 下载于www.51aspx.com
string admin = this.txtadmin.Text;
string pass = MD5.Hash(this.txtpass.Text.Trim());
Maticsoft.Model.user model = new Maticsoft.Model.user();
model.admin = admin;
model.pass = pass;
后面还有 77 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。