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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0000000000000000000000000000000000000000..52939f8e2d1389d8f85dfb99d563155dcc2d9703 --- /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 0000000000000000000000000000000000000000..db218321497a57bc873788a689a31c3f8b41b863 --- /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 0000000000000000000000000000000000000000..8ff0f0dd6555ad1097ae83fcfe304899a23b4dff --- /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 0000000000000000000000000000000000000000..2b4da139b2bf7861a2e6c46be78dcfd41665da0c --- /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