From 427549f5be0dce3141efb2ee8d4a05a2629cc4b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E8=BE=89=E8=BE=BE?= <1565174779@qq.com> Date: Tue, 24 May 2022 13:52:41 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=E5=88=98=E6=B6=9B=E6=95=99=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WebForm1.aspx(1).cs" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/WebForm1.aspx(1).cs" diff --git "a/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/WebForm1.aspx(1).cs" "b/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/WebForm1.aspx(1).cs" new file mode 100644 index 0000000..c0541de --- /dev/null +++ "b/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/WebForm1.aspx(1).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 Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) { + SqlDataSource1.SelectCommand = "select * from city where type=1 "; + + SqlDataSource2.SelectCommand = "select * from city where type=2 and pid=2"; + SqlDataSource3.SelectCommand = "select * from city where type=3 and pid in (select id from city where type = 2 and pid = 2)"; + } + + } + + protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) + { + SqlDataSource2.SelectCommand = "select * from city where type=2 and pid=" + DropDownList1.SelectedValue; + SqlDataSource3.SelectCommand = "select * from city where type=3 and pid in (select id from city where type = 2 and pid = " + DropDownList1.SelectedValue+")"; + } + + protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) + { + SqlDataSource3.SelectCommand = "select * from city where type=3 and pid =" + DropDownList2.SelectedValue; + } + + protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file -- Gitee From f9764887bb456740970b3680639791e81a21151a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E8=BE=89=E8=BE=BE?= <1565174779@qq.com> Date: Tue, 24 May 2022 13:52:52 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2023?= =?UTF-8?q?=E6=BD=98=E8=BE=89=E8=BE=BE/=E4=BD=9C=E4=B8=9A/WebForm1.aspx(1)?= =?UTF-8?q?.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WebForm1.aspx(1).cs" | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 "23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/WebForm1.aspx(1).cs" diff --git "a/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/WebForm1.aspx(1).cs" "b/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/WebForm1.aspx(1).cs" deleted file mode 100644 index c0541de..0000000 --- "a/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/WebForm1.aspx(1).cs" +++ /dev/null @@ -1,39 +0,0 @@ -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 (!Page.IsPostBack) { - SqlDataSource1.SelectCommand = "select * from city where type=1 "; - - SqlDataSource2.SelectCommand = "select * from city where type=2 and pid=2"; - SqlDataSource3.SelectCommand = "select * from city where type=3 and pid in (select id from city where type = 2 and pid = 2)"; - } - - } - - protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) - { - SqlDataSource2.SelectCommand = "select * from city where type=2 and pid=" + DropDownList1.SelectedValue; - SqlDataSource3.SelectCommand = "select * from city where type=3 and pid in (select id from city where type = 2 and pid = " + DropDownList1.SelectedValue+")"; - } - - protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) - { - SqlDataSource3.SelectCommand = "select * from city where type=3 and pid =" + DropDownList2.SelectedValue; - } - - protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e) - { - - } - } -} \ No newline at end of file -- Gitee From f6b96e648757a2ed9589d7c6231342b71a89a944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E8=BE=89=E8=BE=BE?= <1565174779@qq.com> Date: Tue, 24 May 2022 13:52:57 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=9B=9B?= =?UTF-8?q?=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\345\233\233\347\253\240/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240/.keep" diff --git "a/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240/.keep" "b/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0bd165fe64ef09c124bfb03819a25a962b512619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E8=BE=89=E8=BE=BE?= <1565174779@qq.com> Date: Tue, 24 May 2022 13:53:32 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=E5=88=98=E6=B6=9B=E6=95=99=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WebForm1.aspx(1).cs" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240/WebForm1.aspx(1).cs" diff --git "a/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240/WebForm1.aspx(1).cs" "b/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240/WebForm1.aspx(1).cs" new file mode 100644 index 0000000..c0541de --- /dev/null +++ "b/23\346\275\230\350\276\211\350\276\276/\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240/WebForm1.aspx(1).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 Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) { + SqlDataSource1.SelectCommand = "select * from city where type=1 "; + + SqlDataSource2.SelectCommand = "select * from city where type=2 and pid=2"; + SqlDataSource3.SelectCommand = "select * from city where type=3 and pid in (select id from city where type = 2 and pid = 2)"; + } + + } + + protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) + { + SqlDataSource2.SelectCommand = "select * from city where type=2 and pid=" + DropDownList1.SelectedValue; + SqlDataSource3.SelectCommand = "select * from city where type=3 and pid in (select id from city where type = 2 and pid = " + DropDownList1.SelectedValue+")"; + } + + protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) + { + SqlDataSource3.SelectCommand = "select * from city where type=3 and pid =" + DropDownList2.SelectedValue; + } + + protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file -- Gitee