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" %> + + + + + + +