global.asax.cs

来自「数字图书馆网站」· CS 代码 · 共 82 行

CS
82
字号
using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;

namespace DigitalLibrary 
{
	/// <summary>
	/// Summary description for Global.
	/// </summary>
	public class Global : System.Web.HttpApplication
	{
		public Global()
		{
			InitializeComponent();
		}	
		
		protected void Application_Start(Object sender, EventArgs e)
		{
			Application["SessionCount"] = 0;
		}
 
		protected void Session_Start(Object sender, EventArgs e)
		{
			Session["Login"] = null;
			Application["SessionCount"] = Convert.ToInt32( Application["SessionCount"] ) + 1;
			Session["BackColor"] = "White";
			Session["ForeColor"] = "Navy";
			Session["FontSize"] = "8pt";
			Session["FontName"] = "Century Gothic";
			Session["IEorNot"]=true;
			Session["CurrentPage"] = null;
			Session["objView"] = null;
			Session["CurrentTable"]=null;
			Session["EditClicked"] = -1;
		}

		protected void Application_BeginRequest(Object sender, EventArgs e)
		{

		}

		protected void Application_EndRequest(Object sender, EventArgs e)
		{

		}

		protected void Application_AuthenticateRequest(Object sender, EventArgs e)
		{

		}

		protected void Application_Error(Object sender, EventArgs e)
		{

		}

		protected void Session_End(Object sender, EventArgs e)
		{
			Session["Login"] = null;
		}

		protected void Application_End(Object sender, EventArgs e)
		{
			Application["SessionCount"] = 0;
		}
			
		#region Web Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{    

		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?