Web/Users/Modify.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.Text;
using Maticsoft.Common;
using LTP.Accounts.Bus;
namespace DBA.Web.Users
{
public partial class Modify : Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
{
int ID=(Convert.ToInt32(Request.Params["id"]));
ShowInfo(ID);
}
}
}
private void ShowInfo(int ID)
{
DBA.BLL.Users bll=new DBA.BLL.Users();
DBA.Model.Users model=bll.GetModel(ID);
this.lblID.Text=model.ID.ToString();
this.txtUserName.Text=model.UserName;
this.txtUserPSD.Text=model.UserPSD;
this.txtUserType.Text=model.UserType;
this.txtDepName.Text=model.DepName;
this.txtAge.Text=model.Age;
this.txtMajor.Text=model.Major;
this.txtBYSJ.Text=model.BYSJ;
this.txtSex.Text=model.Sex;
this.txtUserJG.Text=model.UserJG;
this.txtUserSFZ.Text=model.UserSFZ;
this.txtStr1.Text=model.Str1;
this.txtStr2.Text=model.Str2;
this.txtStr3.Text=model.Str3;
this.txtStr4.Text=model.Str4;
this.txtStr5.Text=model.Str5;
}
public void btnSave_Click(object sender, EventArgs e)
{
string strErr="";
if(this.txtUserName.Text.Trim().Length==0)
{
strErr+="UserName不能为空!\\n";
后面还有 112 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。