⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 benke.ascx.cs

📁 个人作品
💻 CS
字号:
namespace webjiuye.collage
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;

	/// <summary>
	///		benke1 的摘要说明。
	/// </summary>
	public class benke1 : System.Web.UI.UserControl
	{
		protected System.Web.UI.WebControls.LinkButton stusearch;
		protected System.Web.UI.WebControls.LinkButton stuadd;
		protected System.Web.UI.WebControls.LinkButton stuchange;
		protected System.Web.UI.WebControls.LinkButton dwsearch;
		protected System.Web.UI.WebControls.LinkButton stujiuye;
		protected System.Web.UI.WebControls.LinkButton canpq;
		protected System.Web.UI.WebControls.Panel stucontrl;
		protected System.Web.UI.WebControls.Panel stuinfoadd;
		protected System.Web.UI.WebControls.LinkButton pqdw;

		private void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			try
			{
				if(Session["stu"].ToString()=="benke")
				{
					this.stucontrl.Visible=true;
					this.canpq.Visible=false;
					this.pqdw.Visible=false;
				}
				if(Session["stu"].ToString()=="gaozhi")
				{
					this.stucontrl.Visible=true;
					this.canpq.Visible=false;
					this.pqdw.Visible=false;
				}
				if(Session["stu"].ToString()=="yanjiusheng")
				{
					this.stucontrl.Visible=true;
				}

			}
			catch
			{}
		}

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

		}
		#endregion

		private void stuadd_Click(object sender, System.EventArgs e)
		{
			this.stuinfoadd.Visible=true;
			//this.stuinfosearch.Visible=false;
		}

		private void stusearch_Click(object sender, System.EventArgs e)
		{
			this.stuinfoadd.Visible=false;
			//this.stuinfosearch.Visible=true;
		}
	}
}

⌨️ 快捷键说明

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