From a79dc027fd186bde24e13b7a0945f7c27aaf52e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E6=96=87=E9=BE=99?= <1617162119@qq.com> Date: Wed, 25 May 2022 12:27:11 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=93=9D=E6=96=87?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\223\235\346\226\207\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/.keep" diff --git "a/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/.keep" "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5b2dd8a8b1c5e22f6faf139cbb848a383698326c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E6=96=87=E9=BE=99?= <1617162119@qq.com> Date: Wed, 25 May 2022 12:29:36 +0000 Subject: [PATCH 2/2] =?UTF-8?q?5.25=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WebForm1.aspx" | 46 +++++++++++++++++++ .../WebForm1.aspx.cs" | 40 ++++++++++++++++ .../WebForm2.aspx" | 16 +++++++ .../WebForm2.aspx.cs" | 35 ++++++++++++++ 4 files changed, 137 insertions(+) create mode 100644 "5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm1.aspx" create mode 100644 "5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm1.aspx.cs" create mode 100644 "5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm2.aspx" create mode 100644 "5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm2.aspx.cs" diff --git "a/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm1.aspx" "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm1.aspx" new file mode 100644 index 0000000..52939f8 --- /dev/null +++ "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm1.aspx" @@ -0,0 +1,46 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Lisson5.WebForm1" %> + + + + + + + + + +
+
+ + + + + + + + + + + + + + +
+ 账号: + + +
+ 密码: + + + +
+ + + + +
+
+
+ + diff --git "a/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm1.aspx.cs" "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm1.aspx.cs" new file mode 100644 index 0000000..db21832 --- /dev/null +++ "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm1.aspx.cs" @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace Lisson5 +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void Button2_Click(object sender, EventArgs e) + { + string name = text_Used.Text; + string pwd = text_Pwd.Text; + if (name=="admin") + { + if (pwd=="88888888") + { + Response.Redirect($"~/WebForm2.aspx?name={text_Used.Text}&pwd={text_Pwd.Text}"); + } + else + { + //向响应页面输出数据 + //弹窗,js + Response.Write(""); + } + } + else + { + Response.Write(""); + } + } + } +} \ No newline at end of file diff --git "a/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm2.aspx" "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm2.aspx" new file mode 100644 index 0000000..8ff0f0d --- /dev/null +++ "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm2.aspx" @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Lisson5.WebForm2" %> + + + + + + + + + +
+
欢迎登入首页!!! +
+
+ + diff --git "a/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm2.aspx.cs" "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm2.aspx.cs" new file mode 100644 index 0000000..2b4da13 --- /dev/null +++ "b/5.25\345\206\205\347\275\256\345\257\271\350\261\241\347\232\204\344\275\234\351\241\265/\350\223\235\346\226\207\351\276\231/WebForm2.aspx.cs" @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace Lisson5 +{ + public partial class WebForm2 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + + Response.Write("请求方式" + Request.RequestType); + + if (Request.RequestType=="GET") + { //Redirect跳转请求方式是Get + + + string name = Request.QueryString["name"]; + string pwd = Request.QueryString["pwd"]; + + } + else + { + string name = Request.Params["text_Used"]; + string pwd = Request.Params["text_Pwd"]; + Response.Write($"欢迎你,{name},你的密码是{pwd}"); + + } + } + } +} \ No newline at end of file -- Gitee