private void ShowInfo(int Id) { Eva.BLL.WebUser bll=new Eva.BLL.WebUser(); Eva.Model.WebUser model=bll.GetModel(Id); this.lblId.Text=model.Id.ToString(); this.lblLoginId.Text=model.LoginId; this.lblPassWord.Text=model.PassWord; this.lblAuthorityId.Text=model.AuthorityId.ToString(); this.lblName.Text=model.Name; this.lblStudentId.Text=model.StudentId.ToString(); this.lblSex.Text=model.Sex; this.lblCollegeId.Text=model.CollegeId.ToString(); this.lblClassId.Text=model.ClassId.ToString(); this.lblMajorId.Text=model.MajorId.ToString(); this.lblIdCard.Text=model.IdCard; this.lblAddress.Text=model.Address; this.lblPhone.Text=model.Phone; }
protected void Button1_Click(object sender, EventArgs e) { Eva.BLL.WebUser ww = new Eva.BLL.WebUser(); Session["user"] = ww.GetModel(1); Response.Redirect("Teacher/ApplyList.aspx"); }