top.aspx_old.cs
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:1k
源码类别:
OA系统
开发平台:
ASP/ASPX
- 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;
- public partial class web_top : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- if (Application["TITLE"] != null)
- {
- LblTitle.Text = Application["TITLE"].ToString();
- BtnReLogin.Text = "登出";
- BtnReLogin.OnClientClick = "return confirm('確定要登出嗎?')";
- HlWhere.Text = "大家在哪裡";
- if(Session["user"]!=null)
- {
- User user = (User)Session["user"];
- LblInfo.Text = "當前用戶: "+user.Emp_no+" "+user.Emp_name+user.Position;
- }
- }
- }
- }
- protected void BtnReLogin_Click(object sender, EventArgs e)
- {
- Session.RemoveAll();
- Response.Write("<script language='javascript'>window.parent.location.href='login.aspx'</script>");
- }
- }