PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/website/asp/front/info.aspx.cs

https://github.com/panmingzhi815/SchoolManagementSystem
C# | 40 lines | 39 code | 1 blank | 0 comment | 3 complexity | 4150d61d0bc264e9c5dcdf18e09c3c2e MD5 | raw file
Possible License(s): LGPL-2.1
  1. using System;
  2. using System.Collections;
  3. using System.Configuration;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Web;
  7. using System.Web.Security;
  8. using System.Web.UI;
  9. using System.Web.UI.HtmlControls;
  10. using System.Web.UI.WebControls;
  11. using System.Web.UI.WebControls.WebParts;
  12. using System.Xml.Linq;
  13. using DataService.service.dao;
  14. using Domain.Entities;
  15. namespace Domain.asp.front
  16. {
  17. public partial class info : System.Web.UI.Page
  18. {
  19. protected void Page_Load(object sender, EventArgs e)
  20. {
  21. Student s = (Student)Session["user"];
  22. if (s != null)
  23. {
  24. Sn.Value = s.Sn;
  25. Name.Value = s.Name;
  26. IDCode.Value = s.IDcode;
  27. Nation.Value = s.Nation;
  28. Address.Value = s.Address;
  29. MobilePhone.Value = s.MobilePhone;
  30. Telphone.Value = s.Telphone;
  31. Password.Value = s.Password;
  32. welcomeInfo.InnerHtml = "欢迎你," + s.Name;
  33. }
  34. else {
  35. Response.Redirect("login.aspx");
  36. }
  37. }
  38. }
  39. }