From 39e4979e5be8126e847c0aafaa4e6fb736ece2af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A5=8E=E5=A9=B7?= <2939022068@qq.com> Date: Mon, 23 May 2022 05:17:05 +0000 Subject: [PATCH 1/6] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E9=BE=9A=E4=B8=9C=E8=BE=8912?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\351\276\232\344\270\234\350\276\21112/REDAME.md" | 1 - 1 file changed, 1 deletion(-) delete mode 100644 "\351\276\232\344\270\234\350\276\21112/REDAME.md" diff --git "a/\351\276\232\344\270\234\350\276\21112/REDAME.md" "b/\351\276\232\344\270\234\350\276\21112/REDAME.md" deleted file mode 100644 index 9d07aa0..0000000 --- "a/\351\276\232\344\270\234\350\276\21112/REDAME.md" +++ /dev/null @@ -1 +0,0 @@ -111 \ No newline at end of file -- Gitee From e101a003751811968e8a9d0d8d572edd647a2967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A5=8E=E5=A9=B7?= <2939022068@qq.com> Date: Mon, 23 May 2022 05:17:21 +0000 Subject: [PATCH 2/6] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2026=E7=8E=8B=E7=A5=8E?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "26\347\216\213\347\245\216\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "26\347\216\213\347\245\216\345\251\267/.keep" diff --git "a/26\347\216\213\347\245\216\345\251\267/.keep" "b/26\347\216\213\347\245\216\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 77c4036a13f0423cc0c4d3a9a22d101097822822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A5=8E=E5=A9=B7?= <2939022068@qq.com> Date: Mon, 23 May 2022 05:17:36 +0000 Subject: [PATCH 3/6] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/.keep" diff --git "a/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/.keep" "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8d7b6379179a02fa3825963546bb2c312c5ad3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A5=8E=E5=A9=B7?= <2939022068@qq.com> Date: Mon, 23 May 2022 05:17:57 +0000 Subject: [PATCH 4/6] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f48090bce6e9fc722af076b95ccd0d61cd9a78b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A5=8E=E5=A9=B7?= <2939022068@qq.com> Date: Mon, 23 May 2022 05:18:10 +0000 Subject: [PATCH 5/6] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\270\200\351\242\230/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/.keep" diff --git "a/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/.keep" "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 923ec2ec07adab64fc8a4ee50bfa8952bb7890d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A5=8E=E5=A9=B7?= <2939022068@qq.com> Date: Mon, 23 May 2022 05:18:48 +0000 Subject: [PATCH 6/6] 1 --- .../WebForm1.aspx" | 111 ++++++++++++++++++ .../WebForm1.aspx.cs" | 44 +++++++ .../WebForm2.aspx" | 16 +++ .../WebForm2.aspx.cs" | 29 +++++ 4 files changed, 200 insertions(+) create mode 100644 "26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm1.aspx" create mode 100644 "26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm1.aspx.cs" create mode 100644 "26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm2.aspx" create mode 100644 "26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm2.aspx.cs" diff --git "a/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm1.aspx" "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm1.aspx" new file mode 100644 index 0000000..c254889 --- /dev/null +++ "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm1.aspx" @@ -0,0 +1,111 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="_1.WebForm1" %> + + + + + + + + + + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + + + + +
+ +
+ + + 福建省 + 湖南省 + 四川省 + 广西省 + +
+ +
+ + + 编程 + 唱歌 + 打球 + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + diff --git "a/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm1.aspx.cs" "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm1.aspx.cs" new file mode 100644 index 0000000..99192e7 --- /dev/null +++ "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm1.aspx.cs" @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace _1 +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + protected void Button1_Click(object sender, EventArgs e) + { + //HasFile判断上传控件是否有文件 + if (FileUpload1.HasFile) + { + //获取上传控件选择的文件 + string fileName = FileUpload1.FileName; + + //"~/img/"表示服务器中保存文件的目录的虚拟路径,后面加上文件名,即为上传后文件保存的位置 + //Server.MapPath将虚拟路径转换成物理路径 + string path = Server.MapPath("~/img/" + fileName); + + //SaveAs将文件保存到服务器中,参数是保存路径,该路径必须是物理路径 + FileUpload1.SaveAs(path); + + //判断上传控件中的文件是否是图片 + if (FileUpload1.PostedFile.ContentType.Contains("image")) + { + //将图片显示到用户界面的Image1控件中 + Image1.ImageUrl = @"~/img/" + fileName; + } + + } + } + + + + } +} \ No newline at end of file diff --git "a/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm2.aspx" "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm2.aspx" new file mode 100644 index 0000000..25bffb5 --- /dev/null +++ "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm2.aspx" @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="_1.WebForm2" %> + + + + + + + + + +
+
+
+
+ + diff --git "a/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm2.aspx.cs" "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/WebForm2.aspx.cs" new file mode 100644 index 0000000..5dec49d --- /dev/null +++ "b/26\347\216\213\347\245\216\345\251\267/\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\200\351\242\230/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 _1 +{ + public partial class WebForm2 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + string Name = Request.Form["TextBox1"]; + string Sex = Request.Form["RadioButtonList1"]; + string Hobbies = Request.Form["CheckBoxList1"]; + string Birthday = Request.Form["TextBox4"]; + string Email = Request.Form["TextBox5"]; + string IP = Request.Form["TextBox7"]; + + Response.Write("用户名:" + Name); + Response.Write("性别:" + Sex); + Response.Write("兴趣爱好:" + Hobbies); + Response.Write("出生日期:" + Birthday); + Response.Write("邮箱:" + Email); + Response.Write("地址:" + IP); + } + } +} \ No newline at end of file -- Gitee