There is already an open DataReader associated with this Connection which must be closed first

来源:互联网 发布:mac apache php7 配置 编辑:程序博客网 时间:2024/05/14 17:03

这个问题主要是因为在动态绑定时,没有关闭数据库连接引起的,我是这么解决问题的,在   

 protected void gdvQuery_RowDataBound(object sender, GridViewRowEventArgs e)

{

}中,通过遍历已经绑定的gridview 取值来进一步绑定gridview中需要绑定的控件。如:DropDownList...

原创粉丝点击