diff --git "a/15\347\216\213\351\233\252\347\202\234/\347\273\203\344\271\240/\346\225\260\346\215\256\347\273\221\345\256\232/WebForm1.aspx" "b/15\347\216\213\351\233\252\347\202\234/\347\273\203\344\271\240/\346\225\260\346\215\256\347\273\221\345\256\232/WebForm1.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..5575b1746647452832401ebe36d0ca67f87c46cd --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\347\273\203\344\271\240/\346\225\260\346\215\256\347\273\221\345\256\232/WebForm1.aspx" @@ -0,0 +1,21 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="web_003.WebForm1" %> + + + + + + + + + +
+
+ 省份: + + 城市: + + 区县: +
+
+ + diff --git "a/15\347\216\213\351\233\252\347\202\234/\347\273\203\344\271\240/\346\225\260\346\215\256\347\273\221\345\256\232/WebForm1.aspx.cs" "b/15\347\216\213\351\233\252\347\202\234/\347\273\203\344\271\240/\346\225\260\346\215\256\347\273\221\345\256\232/WebForm1.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..8e083a507e4d78d61bf373ff1879a36e2880f34a --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\347\273\203\344\271\240/\346\225\260\346\215\256\347\273\221\345\256\232/WebForm1.aspx.cs" @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace web_003 +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + SqlDataSource1.SelectCommand = "select id,cityName from city where type = 1"; + } + + protected void DropDownList1_TextChanged(object sender, EventArgs e) + { + SqlDataSource2.SelectCommand = "select * from city where type = 2 and pid="+DropDownList1.SelectedValue; + } + } +} \ No newline at end of file