diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/WebForm1.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/1/WebForm1.aspx" similarity index 37% rename from "\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/WebForm1.aspx" rename to "\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/1/WebForm1.aspx" index b70cfb7d8010fda527246f178eb5fd4f2eb7d9c6..816251f479bedbdc6e8e93902c22dffa52add1c0 100644 --- "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/WebForm1.aspx" +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/1/WebForm1.aspx" @@ -10,24 +10,18 @@
-

-
- -
- - 新华社 - 南京社 - -
- - -
- -
+ +
+ +
+ +
+ +
- -
+
+

diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/WebForm1.aspx.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/1/WebForm1.aspx.cs" similarity index 31% rename from "\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/WebForm1.aspx.cs" rename to "\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/1/WebForm1.aspx.cs" index 355abfe4d6e6064e812b95997e32aa181d2e451d..f9b5c257aed0779bcf766c6d35a28c8d03e34338 100644 --- "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/WebForm1.aspx.cs" +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/1/WebForm1.aspx.cs" @@ -5,39 +5,22 @@ using System.Web; using System.Web.UI; using System.Web.UI.WebControls; -namespace WebApplication2 +namespace WebApplication1 { - public partial class WebForm1 : System.Web.UI.Page + public partial class WebForm2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { - if (!IsPostBack) + if (!IsPostBack ) { - string Time = System.DateTime.Now.ToString(); - Label4.Text = "发布时间"+Time; + DropDownList1.Items.Add("男"); + DropDownList1.Items.Add("女"); } } - protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) - { - DropDownList1.Items.Add("北师大出版社"); - } - protected void Button1_Click(object sender, EventArgs e) { - if (TextBox1 != null) - { - Label5.Text = $"此新闻来自 {DropDownList1.Text} 谢谢您的提交!"; - } - else - { - Label5.Text = "请输入新闻内容"; - } - } - - protected void Button2_Click(object sender, EventArgs e) - { - TextBox1.Text = ""; + Label5.Text = $"姓名:{TextBox1.Text} 年龄:{TextBox2.Text} 性别:{DropDownList1.Text} 爱好:{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\346\261\211\346\226\207/2/WebForm1.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/2/WebForm1.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..45cb00457065c329f51fe2de7f3926e288dd594f --- /dev/null +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/2/WebForm1.aspx" @@ -0,0 +1,29 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication3.WebForm1" %> + + + + + + + + + +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WebForm1.aspx.cs" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/2/WebForm1.aspx.cs" similarity index 49% rename from "\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WebForm1.aspx.cs" rename to "\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/2/WebForm1.aspx.cs" index 412aed4f03849612d2c3a17c9fa4cd46c121b3e2..40377681b0e1362890c6546a7667a345f0e81378 100644 --- "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WebForm1.aspx.cs" +++ "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\345\210\230\346\261\211\346\226\207/2/WebForm1.aspx.cs" @@ -5,7 +5,7 @@ using System.Web; using System.Web.UI; using System.Web.UI.WebControls; -namespace WebApplication1 +namespace WebApplication3 { public partial class WebForm1 : System.Web.UI.Page { @@ -13,13 +13,19 @@ namespace WebApplication1 { if (!IsPostBack) { - this.TextSex.Items.Add("男"); - this.TextSex.Items.Add("女"); + Label5.Text = System.DateTime.Now.ToShortTimeString(); } } - protected void Button1_Click1(object sender, EventArgs e) + + protected void TextBox4_TextChanged(object sender, EventArgs e) { - Label5.Text = $"你的姓名为:{TextName.Text} 你的年龄是:{TextAge.Text} 你的性别是:{TextSex.Text} 你的爱好是:{TextHobby.Text}"; + TextBox1.Text = $"姓名:{TextBox2.Text} 年龄:{TextBox2.Text}" + + $"爱好:{TextBox3.Text}"; + } + + protected void Button1_Click(object sender, EventArgs e) + { + } } } \ No newline at end of file diff --git "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WebForm1.aspx" "b/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WebForm1.aspx" deleted file mode 100644 index 0c36522524ad2eeeeba2dca018e1d9faf7be0d71..0000000000000000000000000000000000000000 --- "a/\347\254\2541\346\254\241\344\275\234\344\270\232/\346\235\216\346\230\214\345\256\235/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WebForm1.aspx" +++ /dev/null @@ -1,27 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> - - - - - - - - - -
-
- -
- -
- -
- -
- -
- -
-
- -