Web/Users/Show.aspx.cs
(完整代码) 1KBusing 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;
namespace DBA.Web.Users
{
public partial class Show : Page
{
public string strid="";
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
{
strid = Request.Params["id"];
int ID=(Convert.ToInt32(strid));
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.lblUserName.Text=model.UserName;
this.lblUserPSD.Text=model.UserPSD;
this.lblUserType.Text=model.UserType;
this.lblDepName.Text=model.DepName;
this.lblAge.Text=model.Age;
this.lblMajor.Text=model.Major;
this.lblBYSJ.Text=model.BYSJ;
this.lblSex.Text=model.Sex;
this.lblUserJG.Text=model.UserJG;
this.lblUserSFZ.Text=model.UserSFZ;
this.lblStr1.Text=model.Str1;
this.lblStr2.Text=model.Str2;
this.lblStr3.Text=model.Str3;
this.lblStr4.Text=model.Str4;
this.lblStr5.Text=model.Str5;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。