From 7c8eff43c4dbb961dc5bd8741141b587b109577f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=81=E4=BC=9F=E5=B3=B0?= <1103490369@qq.com>
Date: Sun, 5 Jun 2022 13:07:49 +0000
Subject: [PATCH 1/4] =?UTF-8?q?add=2042=E4=B8=81=E4=BC=9F=E5=B3=B0/Wed?=
=?UTF-8?q?=E4=BD=9C=E4=B8=9A/123.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Wed\344\275\234\344\270\232/123" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/123"
diff --git "a/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/123" "b/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/123"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 4f6bbd9a4858d68129f8763c1a471ec67fb01470 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=81=E4=BC=9F=E5=B3=B0?= <1103490369@qq.com>
Date: Sun, 5 Jun 2022 13:07:56 +0000
Subject: [PATCH 2/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2042?=
=?UTF-8?q?=E4=B8=81=E4=BC=9F=E5=B3=B0/Wed=E4=BD=9C=E4=B8=9A/123?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Wed\344\275\234\344\270\232/123" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 "42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/123"
diff --git "a/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/123" "b/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/123"
deleted file mode 100644
index e69de29..0000000
--
Gitee
From f248931b7fa701eb4432d3e93e8010b90fbec757 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=81=E4=BC=9F=E5=B3=B0?= <1103490369@qq.com>
Date: Sun, 5 Jun 2022 13:08:35 +0000
Subject: [PATCH 3/4] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20123?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
"42\344\270\201\344\274\237\345\263\260/123/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/.keep"
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/.keep" "b/42\344\270\201\344\274\237\345\263\260/123/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From fe6ecd3442e79a9cf5137400fa82b1442bd1ba19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=81=E4=BC=9F=E5=B3=B0?= <1103490369@qq.com>
Date: Sun, 5 Jun 2022 13:11:16 +0000
Subject: [PATCH 4/4] 11
---
.../123/Global.asax" | 1 +
.../123/Global.asax.cs" | 52 ++++++++++++++++++
.../123/WebForm1.aspx" | 35 ++++++++++++
.../123/WebForm1.aspx.cs" | 33 ++++++++++++
.../123/WebForm1.aspx.designer.cs" | 53 +++++++++++++++++++
.../123/WebForm2.aspx" | 17 ++++++
.../123/WebForm2.aspx.cs" | 31 +++++++++++
.../123/WebForm2.aspx.designer.cs" | 35 ++++++++++++
.../123/WebForm3.aspx" | 16 ++++++
.../123/WebForm3.aspx.cs" | 19 +++++++
.../123/WebForm3.aspx.designer.cs" | 26 +++++++++
11 files changed, 318 insertions(+)
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/Global.asax"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/Global.asax.cs"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx.cs"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx.designer.cs"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx.cs"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx.designer.cs"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx.cs"
create mode 100644 "42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx.designer.cs"
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/Global.asax" "b/42\344\270\201\344\274\237\345\263\260/123/Global.asax"
new file mode 100644
index 0000000..760c31c
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/Global.asax"
@@ -0,0 +1 @@
+<%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication1.Global" Language="C#" %>
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/Global.asax.cs" "b/42\344\270\201\344\274\237\345\263\260/123/Global.asax.cs"
new file mode 100644
index 0000000..ac613b9
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/Global.asax.cs"
@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.SessionState;
+
+namespace WebApplication1
+{
+ public class Global : System.Web.HttpApplication
+ {
+
+ protected void Application_Start(object sender, EventArgs e)
+ {
+ Application.Lock();
+ Application["sum"] = 0;
+ Application["Zxsum"] = 0;
+ Application.UnLock();
+ }
+
+ protected void Session_Start(object sender, EventArgs e)
+ {
+ Application["sum"] = (int)Application["sum"] + 1;
+ Application["Zxsum"] = (int)Application["Zxsum"] + 1;
+ }
+
+ protected void Application_BeginRequest(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)
+ {
+ Application["Zxsum"] = (int)Application["Zxsum"] - 1;
+ }
+
+ protected void Application_End(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx"
new file mode 100644
index 0000000..17fcc92
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx"
@@ -0,0 +1,35 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx.cs" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx.cs"
new file mode 100644
index 0000000..b30acda
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx.cs"
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm1 : System.Web.UI.Page
+ {
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string name = txt_Name.Text;
+ string pwd = txt_Pwd.Text;
+ if (name == "admin" && pwd=="123456")
+ {
+ Session["mane"] = name;
+ Session["Nowtime"] = DateTime.Now;
+ Response.Redirect("~/WebForm2.aspx");
+ }
+ else
+ {
+ Response.Write("");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx.designer.cs" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx.designer.cs"
new file mode 100644
index 0000000..cd8802d
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm1.aspx.designer.cs"
@@ -0,0 +1,53 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm1
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// txt_Name 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txt_Name;
+
+ ///
+ /// txt_Pwd 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txt_Pwd;
+
+ ///
+ /// Button1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button1;
+ }
+}
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx"
new file mode 100644
index 0000000..d8c12fa
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx"
@@ -0,0 +1,17 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx.cs" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx.cs"
new file mode 100644
index 0000000..8d23b2d
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx.cs"
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm2 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (Session["mane"] != null)
+ {
+ Response.Write("欢迎用户" + Session["mane"] + "登录本系统!
");
+ Response.Write("您登录系统的时间为:" + Session["Nowtime"]);
+ }
+ else
+ {
+ Response.Redirect("~/WebForm1.aspx");
+ }
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("~/WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx.designer.cs" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx.designer.cs"
new file mode 100644
index 0000000..c5d2e94
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm2.aspx.designer.cs"
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm2
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// Button1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button1;
+ }
+}
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx"
new file mode 100644
index 0000000..d2ba5da
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx"
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="WebApplication1.WebForm3" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx.cs" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx.cs"
new file mode 100644
index 0000000..48d6dc4
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx.cs"
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm3 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ Response.Write($"该网站的总访问人数:{Application["sum"]}
");
+ Response.Write($"当前在线人数:{Application["Zxsum"]}");
+
+ }
+ }
+}
\ No newline at end of file
diff --git "a/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx.designer.cs" "b/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx.designer.cs"
new file mode 100644
index 0000000..d238098
--- /dev/null
+++ "b/42\344\270\201\344\274\237\345\263\260/123/WebForm3.aspx.designer.cs"
@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+//
+// 此代码是由工具生成的。
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm3
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+ }
+}
--
Gitee