From 7658bac4c5937a51a43c8bf5408a0ac68b3c9251 Mon Sep 17 00:00:00 2001
From: GJ <1431250115@qq.com>
Date: Wed, 16 Jun 2021 12:19:50 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=83=AD=E6=8C=AF?=
=?UTF-8?q?=E7=81=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../\351\203\255\346\214\257\347\201\277/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/.keep"
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/.keep" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 87fc9e962435857eac3e9d64b9aa95deed8187b2 Mon Sep 17 00:00:00 2001
From: GJ <1431250115@qq.com>
Date: Wed, 16 Jun 2021 12:20:06 +0800
Subject: [PATCH 2/2] 1
---
.../WebForm1.aspx" | 29 +++++++++++++++++++
.../WebForm1.aspx.cs" | 28 ++++++++++++++++++
.../WebForm2.aspx" | 19 ++++++++++++
.../WebForm2.aspx.cs" | 29 +++++++++++++++++++
4 files changed, 105 insertions(+)
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm1.aspx"
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm1.aspx.cs"
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm2.aspx"
create mode 100644 "\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm2.aspx.cs"
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm1.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm1.aspx"
new file mode 100644
index 0000000..87cf450
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm1.aspx"
@@ -0,0 +1,29 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm11" %>
+
+
+
+<%--写一个登录页面,有用户名和密码,点击登录,跳转到登录成功页面,
+登录成功页面显示“欢迎你,张三,你的密码是:123”(h1效果)
+
+登录按钮有两个,一个是Post请求,一个是Get请求。
+在登录成功页面,需判断请求的方式,
+如果是Post,请用Post对应的方式获取Request数据,
+如果是Get,请用Get对应的方式获取Request数据。--%>
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm1.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm1.aspx.cs"
new file mode 100644
index 0000000..834b482
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/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 WebForm11 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ TextBox1.Text = string.Empty;
+ TextBox2.Text = string.Empty;
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ Response.Redirect(string.Format($"WebForm2.aspx?usename={TextBox1.Text}&passward={TextBox2.Text}"));
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ Response.Redirect(string.Format($"WebForm2.aspx?usename={TextBox1.Text}&passward={TextBox2.Text}"));
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm2.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm2.aspx"
new file mode 100644
index 0000000..a167b90
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm2.aspx"
@@ -0,0 +1,19 @@
+<%@ 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/\351\203\255\346\214\257\347\201\277/WebForm2.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm2.aspx.cs"
new file mode 100644
index 0000000..1c0519a
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\203\255\346\214\257\347\201\277/WebForm2.aspx.cs"
@@ -0,0 +1,29 @@
+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)
+ {
+ string s = Request.HttpMethod;
+ if (s =="GET")
+ {
+ string username = Request.QueryString["username"];
+ string password = Request.QueryString["password "];
+ Label1.Text = $"欢迎你,{username },你的密码是:{password }";
+ }
+ else if(s =="POST")
+ {
+ string username1= Request.Form["TextBox1"];
+ string password1= Request.Form["TextBox2"];
+ Label1.Text = $"欢迎你,{username1},你的密码是:{password1}";
+ }
+ }
+ }
+}
\ No newline at end of file
--
Gitee