top.ascx.cs
来自「通过微软的最新技术ASP.NET2.0开发一个类似BtoC、CtoC的企业产品信」· CS 代码 · 共 60 行
CS
60 行
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 top : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Session["style"] = "css/StyleSheet.css";
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Session["style"] = "css/StyleSheet1.css";
}
protected void LinkButton5_Click(object sender, EventArgs e)
{
this.DIV1.Visible = true;
}
protected void LinkButton1_Click1(object sender, EventArgs e)
{
this.Session["style"] = "css/StyleSheet1.css";
}
protected void LinkButton6_Click(object sender, EventArgs e)
{
this.DIV1.Visible = false;
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
this.Session["style"] = "css/StyleSheet.css";
}
protected void LinkButton3_Click(object sender, EventArgs e)
{
this.Session["style"] = "css/StyleSheet2.css";
}
protected void LinkButton4_Click(object sender, EventArgs e)
{
this.Session["style"] = "css/StyleSheet3.css";
}
protected void LinkButton7_Click(object sender, EventArgs e)
{
this.Session["style"] = "css/StyleSheet4.css";
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?