本文介绍了DataSource和DatasourceId的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#代码中使用DataSource并在aspDatasourceid中使用
当我运行应用程序时,它会生成错误,只应该使用一个定义。因此,当我消除dataSourceId或DataSource时,它会生成一些列不具有此类ID的Exsist。



这是什么解决方案。因为代码已经设计成它需要两者并且我被要求更新它..



现在我被困了.....

解决方案





[]





- Amit

In C# code "DataSource" is been used and in asp "Datasourceid"
when i run the application it generate error that only one definition should be used. so when i eliminate dataSourceId or DataSource it generates that some Columns don't Exsist with such id.

What is the solution this. as code already has been designed in such a way that it requires both and i have been asked to update it..

Now i am stuck.....

解决方案




MSDN : BaseDataBoundControl.DataSourceID Property[^]



--Amit


这篇关于DataSource和DatasourceId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 08:37