市长热线演示版

center.aspx.cs 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using HySoft.Common;
  8. namespace HySoft.BaseCallCenter.Web
  9. {
  10. public partial class center : tools.BasePage
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. if (!Page.IsPostBack)
  15. {
  16. Response.Expires = -1;
  17. if (!this.IsPostBack)
  18. {
  19. try
  20. {
  21. //检查用户是否已经登录,没有则跳转到登陆页面
  22. LoginUser p_LoginUser = new LoginUser(this.Context);
  23. if (p_LoginUser.UserID == 0)
  24. {
  25. }
  26. else
  27. {
  28. userInfo.InnerHtml = p_LoginUser.UserName;
  29. }
  30. }
  31. catch (Exception ex)
  32. {
  33. SysLog.WriteLog(ex);
  34. }
  35. }
  36. }
  37. }
  38. }
  39. }