posted @ 2008-09-19 15:28 龍騎少校 阅读(735) 评论(0) 推荐(0)
摘要:
经常用dropdownlist绑定数据,涉及到多级联动的问题,刷新页面不太好,于是花了点时间,用AjaxPro来实现无刷新绑定DropDownList数据的问题。 阅读全文
摘要:
绑定DataTable Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//创建一个SqlConnection SqlConnection conn = new SqlConnection("Data Source=.;Initial ... 阅读全文
posted @ 2008-09-19 15:26 龍騎少校 阅读(1400) 评论(1) 推荐(0)
摘要:
我在写DataGrid控件中子控件事件时候,DropDownList的事件相比而言麻烦一点,在此,我简单罗列如下(我在此处为了方便这里都用DataGrid中的隐藏列存储我所要的数据): 一、DropDownList的动态绑定,只需在DataGrid1_ItemDataBound的事件中,取出数值进行匹配,便可以了,具体代码如下: Code highlighting produced by... 阅读全文
posted @ 2008-09-18 17:22 龍騎少校 阅读(689) 评论(0) 推荐(0)
摘要:
DataGrid和DropDownList的一些配合以及使用css定制DataGrid 阅读全文
posted @ 2008-09-18 17:11 龍騎少校 阅读(205) 评论(0) 推荐(0)
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-09-18 17:06 龍騎少校 阅读(190) 评论(0) 推荐(0)
摘要:
一:添加如下代码就可以解决(不过后来网页报对此处代码报脚本错误) if (!Page.IsPostBack) { this.DropDownList1.Attributes.Add("onchange", "return startRequest();"); } 阅读全文
posted @ 2008-09-18 17:04 龍騎少校 阅读(157) 评论(0) 推荐(0)
摘要:
1,数据源是使用数组列表的数据,而且当选择改变时候,也会激发一个事件!2,两级联动3,动态添加下拉列表的项 后台c#代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Data;using Syst... 阅读全文
posted @ 2008-09-18 16:24 龍騎少校 阅读(259) 评论(0) 推荐(0)
摘要:
实现了DropDownList下拉框多选的功能,摆脱了普通的DropDownList只能实现单选而不能实现多选的问题: 前台html代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 系统权限 ... 阅读全文
posted @ 2008-09-18 16:09 龍騎少校 阅读(1522) 评论(0) 推荐(1)
摘要:
在DetailsView的模版中有一个DropDownList的控件,也创建了一个数据源,然后设置了SelectedValue=''。同时和DetailsView的数据源中也有XXX的字段。这时只要程序进入DropDownList的Datadingding就会报错“Eval()、XPath() 和 Bind() 这类数据绑定方法只能在数据绑定控件的上下文中使用。 ”。有一个简单的方法可以解决这个B... 阅读全文
posted @ 2008-09-18 15:42 龍騎少校 阅读(203) 评论(0) 推荐(0)
摘要:
html代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ... 阅读全文
posted @ 2008-09-18 15:35 龍騎少校 阅读(175) 评论(0) 推荐(0)
浙公网安备 33010602011771号