From 9fc98e436343c4a899a7b6cb3f13153fc81fd683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E4=BC=9F=E5=B3=B0?= <1103490369@qq.com> Date: Tue, 24 May 2022 15:07:35 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2042=E4=B8=81=E4=BC=9F?= =?UTF-8?q?=E5=B3=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "42\344\270\201\344\274\237\345\263\260/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "42\344\270\201\344\274\237\345\263\260/.keep" diff --git "a/42\344\270\201\344\274\237\345\263\260/.keep" "b/42\344\270\201\344\274\237\345\263\260/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8986688bdd7b9dc2aa37bcabcc1f5c45051f6fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E4=BC=9F=E5=B3=B0?= <1103490369@qq.com> Date: Tue, 24 May 2022 15:08:20 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20Wed=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Wed\344\275\234\344\270\232/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/.keep" diff --git "a/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/.keep" "b/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f241a9df8948f0910bd107058c4b9c7bd50923e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E4=BC=9F=E5=B3=B0?= <1103490369@qq.com> Date: Tue, 24 May 2022 15:08:44 +0000 Subject: [PATCH 3/3] 11 --- .../WebForm1.aspx.cs" | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 "42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/WebForm1.aspx.cs" diff --git "a/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/WebForm1.aspx.cs" "b/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/WebForm1.aspx.cs" new file mode 100644 index 0000000..150e4f7 --- /dev/null +++ "b/42\344\270\201\344\274\237\345\263\260/Wed\344\275\234\344\270\232/WebForm1.aspx.cs" @@ -0,0 +1,33 @@ +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; + } + } +} \ No newline at end of file -- Gitee