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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0000000000000000000000000000000000000000..0c3e51cbe4bc769d26374bde78c3c433b9eb1c1e --- /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 0000000000000000000000000000000000000000..7ddebc0afa052897feb5e51ee8e8f91056725b01 --- /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 0000000000000000000000000000000000000000..22617cca313c0f669d955fe8833b8e4a30946c21 --- /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 0000000000000000000000000000000000000000..f1ac1d765ffb8ffad9810b997ba789cd525d8d85 --- /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