随笔分类 -  DropDownList

asp.net DropDownList 三级联动下拉菜单
摘要:if (!IsPostBack) { //一级分类列表 this.DropDownList1.DataSource = dsbb.SelectSubjct1(); this.DropDownList1.DataTextField = "cName"; this.DropDownList1.Data... 阅读全文

posted @ 2009-04-11 15:43 智者生存 阅读(1666) 评论(1) 推荐(0)

DropDownList联动不刷新(二级)
摘要:这是一个简单的例子,在NorthWind数据库中建立了两张表,在后台用到了数据访问层,所以如果要测试,必须根据存储过程写一个方法去绑定DropDownList. 界面如下: 1.表的创建:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Type]') and OBJECTP... 阅读全文

posted @ 2009-04-11 12:44 智者生存 阅读(828) 评论(0) 推荐(0)