bottom.aspx.cs

来自「可供共享学习.net环境下生产管理的实现」· CS 代码 · 共 56 行

CS
56
字号
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace Botheighten.Yanghui.Web
{
	/// <summary>
	/// Bottom 的摘要说明。
	/// </summary>
	public class Bottom : BasePage
	{
		protected System.Web.UI.WebControls.Label lblVersion;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			if(Application["Author"]!=null && Application["Author"].ToString()=="Y")
				this.lblVersion.Text ="[激活版]";
			else if(Application["Demo"]!=null && Application["Demo"].ToString()=="Y")
				this.lblVersion.Text = "[试用版]";
			else if(Application["Expire"]!=null && Application["Expire"].ToString()=="Y")
				this.lblVersion.Text ="[版本过期]";
				
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
			//
			InitializeComponent();
			this.DemoCheck=false;
			base.OnInit(e);
		}
		
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{    
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}

⌨️ 快捷键说明

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