同时在asp.net中使用网格视图绑定数据 [英] while binding data with grid view in asp.net

查看:50
本文介绍了同时在asp.net中使用网格视图绑定数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误,数据源和数据源ID都存在,请删除一个定义我应该做什么,请帮助我紧急。

i am getting error that both datasource and datasource id exist kindly remove one definition what should i do kindly help me its urgent.

推荐答案

从例外,它很清楚...



你的 GridView 有它的 DataSource DataSourceID 属性集。只能设置一个。



此外,如果您尝试从<$ c $绑定 GridView c> SQLDataSource 和代码,然后出现这个问题。请参阅 - DataSource和DataSourceID都在'GridView1'上定义。删除一个定义。这是什么意思 [ ^ ]
From the Exception, it is clear that...

Your GridView has both it's DataSource and DataSourceID properties set. Only one can be set.

Also, if you try to bind the GridView both from SQLDataSource and code, then this problem comes. See - Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition." What does this mean[^]


这篇关于同时在asp.net中使用网格视图绑定数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆