From 968f848b662e4798456a4318d5db0f2dbacae3ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=93=9D=E6=96=87=E9=BE=99?= <1617162119@qq.com>
Date: Tue, 24 May 2022 14:18:08 +0000
Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2049=E8=93=9D=E6=96=87?=
=?UTF-8?q?=E9=BE=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
"49\350\223\235\346\226\207\351\276\231/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "49\350\223\235\346\226\207\351\276\231/.keep"
diff --git "a/49\350\223\235\346\226\207\351\276\231/.keep" "b/49\350\223\235\346\226\207\351\276\231/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 77a88cfc5b2484cd7940cba45a96e12bc7f0bed0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=93=9D=E6=96=87=E9=BE=99?= <1617162119@qq.com>
Date: Tue, 24 May 2022 14:32:05 +0000
Subject: [PATCH 2/2] =?UTF-8?q?=E7=9C=81=E5=B8=82=E5=8E=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...0\347\234\201\345\270\202\345\216\2771.md" | 72 +++++++++++++++++++
1 file changed, 72 insertions(+)
create mode 100644 "49\350\223\235\346\226\207\351\276\231/\347\254\254\344\270\211\347\253\240\347\234\201\345\270\202\345\216\2771.md"
diff --git "a/49\350\223\235\346\226\207\351\276\231/\347\254\254\344\270\211\347\253\240\347\234\201\345\270\202\345\216\2771.md" "b/49\350\223\235\346\226\207\351\276\231/\347\254\254\344\270\211\347\253\240\347\234\201\345\270\202\345\216\2771.md"
new file mode 100644
index 0000000..afdf241
--- /dev/null
+++ "b/49\350\223\235\346\226\207\351\276\231/\347\254\254\344\270\211\347\253\240\347\234\201\345\270\202\345\216\2771.md"
@@ -0,0 +1,72 @@
+```asp
+using System.Web.UI.WebControls;
+
+namespace Demo1
+{
+ public partial class Province : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack) {
+ //SelectCommand:设置数据源的select命令
+ SqlDataSource1.SelectCommand = "select id,cityName from city where type=1";
+```
+
+
+
+```asp
+ //初始化城市信息,父级id为2(北京市下的城市信息)
+ SqlDataSource2.SelectCommand = "select * from city where type=2 and pid=" + 2;
+
+ //初始化区县信息
+ SqlDataSource3.SelectCommand = "select * from city where type=3 and pid=(select top 1 id from city where pid=2)" ;
+ }
+ }
+
+ ///