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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0000000000000000000000000000000000000000..c2548891222442a5b223006164429c24e86f1cd0 --- /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 0000000000000000000000000000000000000000..99192e7b6b0bac7695faed04b9f2f5700d2cc6c2 --- /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 0000000000000000000000000000000000000000..25bffb5c505ab0f8dd6231e15e191eac591a1627 --- /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 0000000000000000000000000000000000000000..5dec49d073ce4fda06656830d867491036559165 --- /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