From 8081a3a01121847cb1c31f45dd4e004d00008770 Mon Sep 17 00:00:00 2001 From: yinchenxu <474746235@qq.com> Date: Tue, 8 Jun 2021 20:15:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=AE=B7=E6=99=A8?= =?UTF-8?q?=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\256\267\346\231\250\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/.keep" diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/.keep" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 36e8ffd7168b396e0dffa78bfadec3c70d6a4e52 Mon Sep 17 00:00:00 2001 From: yinchenxu <474746235@qq.com> Date: Tue, 8 Jun 2021 20:16:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=AE=B7=E6=99=A8=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WebForm1.aspx" | 27 ++++++++++++++ .../WebForm1.aspx.cs" | 31 ++++++++++++++++ .../WebForm2.aspx" | 28 ++++++++++++++ .../WebForm2.aspx.cs" | 37 +++++++++++++++++++ 4 files changed, 123 insertions(+) create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm1.aspx" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm1.aspx.cs" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm2.aspx" create mode 100644 "\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm2.aspx.cs" diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm1.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm1.aspx" new file mode 100644 index 0000000..0c3e51c --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/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/\346\256\267\346\231\250\346\227\255/WebForm1.aspx.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm1.aspx.cs" new file mode 100644 index 0000000..7ddebc0 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm1.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 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 DropDownList1_SelectedIndexChanged(object sender, EventArgs e) + { + + } + + 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/\346\256\267\346\231\250\346\227\255/WebForm2.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm2.aspx" new file mode 100644 index 0000000..22617cc --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm2.aspx" @@ -0,0 +1,28 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %> + + + + + + + + + +
+
+ + 新华社 + 路透社 + BBC + CNN + +
+ +
+ +
+ +
+
+ + diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm2.aspx.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm2.aspx.cs" new file mode 100644 index 0000000..f1ac1d7 --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\256\267\346\231\250\346\227\255/WebForm2.aspx.cs" @@ -0,0 +1,37 @@ +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 WebForm2 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void Button1_Click(object sender, EventArgs e) + { + string str = TextArea1.InnerText; + if (String.IsNullOrEmpty(str)) + { + TextArea1.InnerText = "内容为空,请输入新闻内容!"; + } + else + { + TextArea1.InnerText = "提交成功!"; + } + Label4.Text = DateTime.Now.ToString("d"); + } + + protected void Button2_Click(object sender, EventArgs e) + { + TextArea1.InnerText = ""; + Label4.Text = ""; + } + } +} \ No newline at end of file -- Gitee