From 83cc3c208141bf0a56b55c66a5cdc4a3ffcde498 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9E=97=E6=B5=B7=E5=B3=B0?=
<8753959+lin-haifen@user.noreply.gitee.com>
Date: Wed, 16 Jun 2021 14:58:56 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B5=B7?=
=?UTF-8?q?=E5=B3=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../\346\236\227\346\265\267\345\263\260/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/.keep"
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/.keep" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 1578bc779876c5690e42ed1ba876cf12684dc349 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9E=97=E6=B5=B7=E5=B3=B0?=
<8753959+lin-haifen@user.noreply.gitee.com>
Date: Wed, 16 Jun 2021 15:00:05 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E6=9E=97=E6=B5=B7=E5=B3=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../WebForm1.aspx" | 16 ++++++++++
.../WebForm1.aspx.cs" | 31 +++++++++++++++++++
.../WebForm2.aspx" | 20 ++++++++++++
.../WebForm2.aspx.cs" | 24 ++++++++++++++
4 files changed, 91 insertions(+)
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx"
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx.cs"
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx"
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx.cs"
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx"
new file mode 100644
index 0000000..0cf9c64
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx"
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx.cs"
new file mode 100644
index 0000000..5e79a66
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.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 WebForm1 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ string userName = Request.Form["UserName"];
+ string passWord = Request.Form["PassWord"];
+ string Method = Request.HttpMethod;
+ if (Method == "get")
+ {
+ userName = Request.QueryString["UserName"];
+ passWord = Request.QueryString["Password"];
+ } else if (Method=="post")
+ {
+ userName = Request.Params["UserName"];
+ passWord = Request.Params["Password"];
+ }
+ Response.Write($" 欢迎你,{userName},你的密码是:{passWord} h1> ");
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx"
new file mode 100644
index 0000000..438a805
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx.cs"
new file mode 100644
index 0000000..6d38c16
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx.cs"
@@ -0,0 +1,24 @@
+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)
+ {
+ Response.Write($"欢迎你,{userName},你的密码是:{passWord}");
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ string username = userName.Text;
+ string password = passWord.Text;
+ Response.Redirect($"Index.aspx?username={username}&password={password}");
+ }
+ }
+}
\ No newline at end of file
--
Gitee
From b959d38f575dae60cce8f264b4b5d7e43b2a02e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9E=97=E6=B5=B7=E5=B3=B0?=
<8753959+lin-haifen@user.noreply.gitee.com>
Date: Wed, 16 Jun 2021 20:43:50 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B5=B7?=
=?UTF-8?q?=E5=B3=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../\346\236\227\346\265\267\345\263\260/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/.keep"
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/.keep" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 31f21adcdae15fe371d4aaf3eebcb3d797f89819 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9E=97=E6=B5=B7=E5=B3=B0?=
<8753959+lin-haifen@user.noreply.gitee.com>
Date: Wed, 16 Jun 2021 20:46:00 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E6=9E=97=E6=B5=B7=E5=B3=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../WebForm1.aspx" | 20 ++++++++
.../WebForm1.aspx.cs" | 28 +++++++++++
.../WebForm2.aspx" | 26 ++++++++++
.../WebForm2.aspx.cs" | 49 +++++++++++++++++++
4 files changed, 123 insertions(+)
create mode 100644 "\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx"
create mode 100644 "\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx.cs"
create mode 100644 "\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx"
create mode 100644 "\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx.cs"
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx"
new file mode 100644
index 0000000..97c1d32
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx.cs"
new file mode 100644
index 0000000..fe7f5cd
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm1.aspx.cs"
@@ -0,0 +1,28 @@
+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 = TextBox1.Text;
+ string pwd = TextBox2.Text;
+ Session["name"] = name;
+
+ Response.Cookies["pwd"].Value = pwd;
+ Response.Cookies["pwd"].Expires = DateTime.Now.AddHours(2);
+ Response.Redirect("WebForm2.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx"
new file mode 100644
index 0000000..94880d1
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx"
@@ -0,0 +1,26 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx.cs"
new file mode 100644
index 0000000..9cf5119
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\346\236\227\346\265\267\345\263\260/WebForm2.aspx.cs"
@@ -0,0 +1,49 @@
+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["name"] == null || Request.Cookies["pwd"] == null)
+ {
+ Response.Redirect("WebForm1.aspx");
+ }
+ if (Application["chatRoom"]==null)
+ {
+ Application["chatRoom"] = new Panel();
+ }
+ Panel1.Controls.Add((Panel)Application["chatRoom"]);
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string text = TextBox1.Text;
+ string name = TextBox1.Text;
+ string nowTime = DateTime.Now.ToString();
+
+ Literal literal = new Literal();
+ literal.Text = name + " " + nowTime + ":" + text + "
";
+
+ Panel panel = (Panel)Application["chatRoom"];
+ panel.Controls.Add(literal);
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ Page_Load(sender, e);
+ }
+
+ protected void Button3_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file
--
Gitee