diff --git "a/01\345\276\220\347\253\213\346\264\213/.keep" "b/01\345\276\220\347\253\213\346\264\213/.keep" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm1.aspx" "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm1.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..94e83700a29f1f8716778d383b1dd1363c43e8e3 --- /dev/null +++ "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm1.aspx" @@ -0,0 +1,38 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %> + + + + + + + + + +
+
+ + + + + + + + + + + + + +
用户名: + +
密码: + +
+ + + +
+
+
+ + diff --git "a/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm1.aspx.cs" "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm1.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..49f6d8e0a244e6a107869e6ee1b19930db35e6a4 --- /dev/null +++ "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm1.aspx.cs" @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebApplication2 +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void Button1_Click(object sender, EventArgs e) + { + Button1.PostBackUrl = ""; + if (TextBox1.Text=="admin") + { + if (TextBox2.Text=="123456") + { + + Button1.PostBackUrl = "~/WebForm2.aspx"; + } + else + { + Response.Write(""); + } + } + else + { + Response.Write(""); + } + } + + protected void Button2_Click(object sender, EventArgs e) + { + if (TextBox1.Text == "admin") + { + if (TextBox2.Text == "123456") + { + Response.Redirect("WebForm2.aspx?name=" + TextBox1.Text + "&pwd=" + TextBox2.Text); + } + else + { + Response.Write(""); + } + } + else + { + Response.Write(""); + } + } + } +} \ No newline at end of file diff --git "a/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm2.aspx" "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm2.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..58d5e4dcb0e8c13ce909a7275490f97b41fab6da --- /dev/null +++ "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm2.aspx" @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication2.WebForm2" %> + + + + + + + + + +
+
+
+
+ + diff --git "a/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm2.aspx.cs" "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm2.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..6e6c966f121614c9e8f05bff41da521e7c869864 --- /dev/null +++ "b/01\345\276\220\347\253\213\346\264\213/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/WebForm2.aspx.cs" @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebApplication2 +{ + public partial class WebForm2 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + + Response.Write($"请求方式:{Request.RequestType}"); + if (Request.RequestType=="POST") + { + string a = Request.Params["TextBox1"]; + string b = Request.Params["TextBox2"]; + Response.Write($"

欢迎你,{a},你的密码是:{b}

"); + } + else + { + string c = Request.Params["name"]; + string d = Request.Params["pwd"]; + Response.Write($"

欢迎你,{c},你的密码是:{d}

"); + } + + + + } + } +} \ No newline at end of file