webform的三级联动 与winform一样,只不过需把DropDownList的AutoPostBack属性改为True. *简单日期的编写方法:用是三个DropDownList分别代表年月日,用for循环进行数据绑定,同时并对日进行判断 for (int i = DateTime.Now.Year; i >= 1900; i--) { ListItem li = new ListItem(i.ToString()); Year_Dr.Items.Add(li); } for (int i
1.运用ComboBox的控件建立效果,如右图: 2.建立三个表,第一个Province表: PID,PName;第二个为city表: CId,CName,PId;第三个为coun表:CounID,CounName,CId; 3. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using Sys