diff --git "a/38\345\217\267\351\231\210\344\277\236\344\274\275/.keep" "b/38\345\217\267\351\231\210\344\277\236\344\274\275/.keep" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/38\345\217\267\351\231\210\344\277\236\344\274\275/1WebForm1.aspx" "b/38\345\217\267\351\231\210\344\277\236\344\274\275/1WebForm1.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..bc952d502550534e5241bb7ef3ce57fc5db07528 --- /dev/null +++ "b/38\345\217\267\351\231\210\344\277\236\344\274\275/1WebForm1.aspx" @@ -0,0 +1,46 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %> + + + + + + + + + +
+
+ + + + + + + + + + + + + + + +
+ 用户名: + + + +
+ 密码: + + +
+ + + + +
+
+
+ + diff --git "a/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm1.aspx.cs" "b/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm1.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..bafc0eeeb4ae6b8911ced2b6d2a7a1b42af2e6d8 --- /dev/null +++ "b/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm1.aspx.cs" @@ -0,0 +1,23 @@ +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 Button2_Click(object sender, EventArgs e) + { + + Response.Redirect($"~/WebForm2.aspx?name={TextBox1.Text}&pwd={TextBox2.Text}"); + } + } +} \ No newline at end of file diff --git "a/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm2.aspx" "b/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm2.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..58d5e4dcb0e8c13ce909a7275490f97b41fab6da --- /dev/null +++ "b/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm2.aspx" @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication2.WebForm2" %> + + + + + + + + + +
+
+
+
+ + diff --git "a/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm2.aspx.cs" "b/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm2.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..61bdd695c5c8ca7570e5a65277107bb55aa86be2 --- /dev/null +++ "b/38\345\217\267\351\231\210\344\277\236\344\274\275/WebForm2.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 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 a1 = Request.Params["TextBox2"]; + Response.Write($"用户名:{a}\n密码:{a1}"); + + } + if (Request.RequestType == "GET") + { + + string name = Request.Params["name"]; + string pwd = Request.Params["pwd"]; + Response.Write("欢迎你"+name+"你的密码是"+pwd); + } + } + } +} \ No newline at end of file