Web/SysAdmin/Manage/Edit.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data.SqlClient;using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Web.Admin.Manage
{
public partial class edit :Web.UI. ManagePage
{
public int Id;
protected string strLevel;
protected int strType;
protected void Page_Load(object sender, EventArgs e)
{
chkLoginLevel("editManage");
if (!int.TryParse(Request.Params["id"] as string, out this.Id))
{
JscriptMsg(350, 230, "错误提示", "<b>出现错误啦!</b>您要修改的信息不存在或参数不正确。", "back", "Error");
return;
}
if (!Page.IsPostBack)
{
ShowInfo(this.Id);
}
}
//赋值操作
private void ShowInfo(int editID)
{
BLL.Admin bll = new BLL.Admin();
Model.Admin model = new Model.Admin();
model = bll.GetModel(editID);
txtUserName.Text = model.UserName;
if (model.IsLock == 1)
{
this.rblIsLock.Items[1].Selected = true;
}
else
{
this.rblIsLock.Items[0].Selected = true;
}
txtReadName.Text = model.ReadName;
this.strLevel = model.UserLevel;
this.strType = model.UserType;
if (model.UserType == 1)
{
this.rblUserType.Items[0].Selected = true;
}
if (model.UserType == 2)
{
this.rblUserType.Items[1].Selected = true;
}
if (model.UserType == 3)
{
this.rblUserType.Items[2].Selected = true;
}
}
后面还有 26 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
