From 8bc6d9d384542e4a543a3cada04e96f87c4a62ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=9F=B9=E6=A8=9F?= <3441748278@qq.com> Date: Tue, 8 Jun 2021 23:22:05 +0800 Subject: [PATCH 1/3] fdas --- .../1/WebForm1.aspx" | 27 ++++ .../1/WebForm1.aspx.cs" | 28 +++++ .../1/WebForm1.aspx.designer.cs" | 116 ++++++++++++++++++ .../2/WebForm1.aspx" | 33 +++++ .../2/WebForm1.aspx.cs" | 39 ++++++ 5 files changed, 243 insertions(+) create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx.cs" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx.designer.cs" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/2/WebForm1.aspx" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/2/WebForm1.aspx.cs" diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx" new file mode 100644 index 0000000..256b327 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx" @@ -0,0 +1,27 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> + + + + + + + + + +
+
+ + +
+ +
+
+ + + +
+ +
+
+ + diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx.cs" new file mode 100644 index 0000000..cc778e9 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx.cs" @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebApplication1 +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + DropDownList1.Items.Add("男"); + DropDownList1.Items.Add("女"); + } + + + } + + protected void Button1_Click(object sender, EventArgs e) + { + Label5.Text = $"我叫{TextBox1.Text},我今年{TextBox2.Text},我是一个{DropDownList1.SelectedValue}生,我喜欢做{TextBox3.Text}"; + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx.designer.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx.designer.cs" new file mode 100644 index 0000000..e9a2728 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/1/WebForm1.aspx.designer.cs" @@ -0,0 +1,116 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace WebApplication1 +{ + + + public partial class WebForm1 + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// TextBox1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.TextBox TextBox1; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// TextBox2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.TextBox TextBox2; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label3; + + /// + /// DropDownList1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.DropDownList DropDownList1; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// TextBox3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.TextBox TextBox3; + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button Button1; + + /// + /// Label5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label5; + } +} diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/2/WebForm1.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/2/WebForm1.aspx" new file mode 100644 index 0000000..da1a595 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/2/WebForm1.aspx" @@ -0,0 +1,33 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> + + + + + + + + + +
+
+              + +
+ + 新华社 + 清华社 + +
+ +
+ + +
+              +   +
+ +
+
+ + diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/2/WebForm1.aspx.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/2/WebForm1.aspx.cs" new file mode 100644 index 0000000..30c1196 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\351\207\221\346\265\267/2/WebForm1.aspx.cs" @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebApplication1 +{ + public partial class WebForm1 : System.Web.UI.Page + { + + protected void Button1_Click(object sender, EventArgs e) + { + if (TextBox1 == null) + { + Label3.Text = "请输入新闻内容"; + + } + else + { + Label3.Text = $"此新闻来自{DropDownList1.SelectedValue}谢谢您提交的新闻"; + + } + + } + protected void Button2_Click(object sender, EventArgs e) + { + TextBox1.Text = null; + } + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Label6.Text = DateTime.Now.ToLongDateString().ToString(); + } + } + } +} \ No newline at end of file -- Gitee From 73e39130a5a68cd6d7e7b20a27802caf6d0cf271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=9F=B9=E6=A8=9F?= <3441748278@qq.com> Date: Wed, 9 Jun 2021 07:28:34 +0800 Subject: [PATCH 2/3] dsa --- .../WebForm1.aspx" | 27 ++++ .../WebForm1.aspx.cs" | 28 +++++ .../WebForm1.aspx.designer.cs" | 116 ++++++++++++++++++ .../WebForm1.aspx" | 33 +++++ .../WebForm1.aspx.cs" | 39 ++++++ 5 files changed, 243 insertions(+) create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx.cs" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx.designer.cs" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\272\214\347\253\240/WebForm1.aspx" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\272\214\347\253\240/WebForm1.aspx.cs" diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx" new file mode 100644 index 0000000..256b327 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx" @@ -0,0 +1,27 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> + + + + + + + + + +
+
+ + +
+ +
+
+ + + +
+ +
+
+ + diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx.cs" new file mode 100644 index 0000000..cc778e9 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx.cs" @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebApplication1 +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + DropDownList1.Items.Add("男"); + DropDownList1.Items.Add("女"); + } + + + } + + protected void Button1_Click(object sender, EventArgs e) + { + Label5.Text = $"我叫{TextBox1.Text},我今年{TextBox2.Text},我是一个{DropDownList1.SelectedValue}生,我喜欢做{TextBox3.Text}"; + } + } +} \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx.designer.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx.designer.cs" new file mode 100644 index 0000000..e9a2728 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/WebForm1.aspx.designer.cs" @@ -0,0 +1,116 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace WebApplication1 +{ + + + public partial class WebForm1 + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// TextBox1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.TextBox TextBox1; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// TextBox2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.TextBox TextBox2; + + /// + /// Label3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label3; + + /// + /// DropDownList1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.DropDownList DropDownList1; + + /// + /// Label4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label4; + + /// + /// TextBox3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.TextBox TextBox3; + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button Button1; + + /// + /// Label5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label5; + } +} diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\272\214\347\253\240/WebForm1.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\272\214\347\253\240/WebForm1.aspx" new file mode 100644 index 0000000..da1a595 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\272\214\347\253\240/WebForm1.aspx" @@ -0,0 +1,33 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> + + + + + + + + + +
+
+              + +
+ + 新华社 + 清华社 + +
+ +
+ + +
+              +   +
+ +
+
+ + diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\272\214\347\253\240/WebForm1.aspx.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\272\214\347\253\240/WebForm1.aspx.cs" new file mode 100644 index 0000000..30c1196 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\350\265\265\345\230\211\344\277\212/\347\254\254\344\272\214\347\253\240/WebForm1.aspx.cs" @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebApplication1 +{ + public partial class WebForm1 : System.Web.UI.Page + { + + protected void Button1_Click(object sender, EventArgs e) + { + if (TextBox1 == null) + { + Label3.Text = "请输入新闻内容"; + + } + else + { + Label3.Text = $"此新闻来自{DropDownList1.SelectedValue}谢谢您提交的新闻"; + + } + + } + protected void Button2_Click(object sender, EventArgs e) + { + TextBox1.Text = null; + } + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + Label6.Text = DateTime.Now.ToLongDateString().ToString(); + } + } + } +} \ No newline at end of file -- Gitee From c88c8b5f78bd2807b52376a875a6f176583d3444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=9F=B9=E6=A8=9F?= <3441748278@qq.com> Date: Thu, 10 Jun 2021 20:13:38 +0800 Subject: [PATCH 3/3] first commit --- .../WebForm1.aspx" | 47 ++++++++++++++ .../WebForm1.aspx.cs" | 61 +++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 "\347\254\2542\346\254\241\344\275\234\344\270\232/\350\256\270\345\237\271\346\250\237/WebForm1.aspx" create mode 100644 "\347\254\2542\346\254\241\344\275\234\344\270\232/\350\256\270\345\237\271\346\250\237/WebForm1.aspx.cs" diff --git "a/\347\254\2542\346\254\241\344\275\234\344\270\232/\350\256\270\345\237\271\346\250\237/WebForm1.aspx" "b/\347\254\2542\346\254\241\344\275\234\344\270\232/\350\256\270\345\237\271\346\250\237/WebForm1.aspx" new file mode 100644 index 0000000..8448db9 --- /dev/null +++ "b/\347\254\2542\346\254\241\344\275\234\344\270\232/\350\256\270\345\237\271\346\250\237/WebForm1.aspx" @@ -0,0 +1,47 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> + + + + + + + + + +
+
+ 注册账号 +
+ 用户名 +
+ 密码: +
+ 性别: + + + +
+ + + 打篮球 + 踢足球 + 游泳 + 翼装飞行 + +
+ 省: +
+ 市区: +
+ 其它信息: +
+ +
+ +
+ + +
+
+ + diff --git "a/\347\254\2542\346\254\241\344\275\234\344\270\232/\350\256\270\345\237\271\346\250\237/WebForm1.aspx.cs" "b/\347\254\2542\346\254\241\344\275\234\344\270\232/\350\256\270\345\237\271\346\250\237/WebForm1.aspx.cs" new file mode 100644 index 0000000..794313d --- /dev/null +++ "b/\347\254\2542\346\254\241\344\275\234\344\270\232/\350\256\270\345\237\271\346\250\237/WebForm1.aspx.cs" @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WebApplication1 +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + DropDownList1.Items.Add("福建"); + DropDownList1.Items.Add("广东"); + DropDownList1.Items.Add("广西"); + } + } + + protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) + { + DropDownList3.Items.Clear(); + if (DropDownList1.SelectedValue == "福建") + { + DropDownList3.Items.Add("泉州"); + DropDownList3.Items.Add("龙岩"); + DropDownList3.Items.Add("三明"); + } + else if (DropDownList1.SelectedValue == "广东") + { + DropDownList3.Items.Add("广州"); + DropDownList3.Items.Add("珠江"); + DropDownList3.Items.Add("深圳"); + } + else if (DropDownList1.SelectedValue == "广西") + { + DropDownList3.Items.Add("博白"); + DropDownList3.Items.Add("凤凰"); + DropDownList3.Items.Add("广西"); + } + } + + protected void Button1_Click(object sender, EventArgs e) + { + string str = null; + for (int i = 0; i < CheckBoxList1.Items.Count; i++) + { + if (CheckBoxList1.Items[i].Selected) + { + str = CheckBoxList1.Items[i] + ""; + } + } + Literal2.Text = $"姓名:{TextBox1.Text}年龄:{TextBox2.Text}性别:{DropDownList2.SelectedValue} 爱好:{CheckBoxList1.Text} 籍贯 省:{DropDownList1.Text} 市:{DropDownList3.Text}其他信息:{TextBox4.Text}"; + } + + + + } +} \ No newline at end of file -- Gitee