用asp.net创建ObjectDataSource [英] Create ObjectDataSource with asp.net
本文介绍了用asp.net创建ObjectDataSource的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建ObjectDataSource,但是我想使用代码.
因为ı使用ms report viewer
I want to create the ObjectDataSource, but I want to do with the code.
Because ı using ms report viewer
推荐答案
如果您还没有注意:此类有两个构造函数来创建对象使用代码",System.Web.UI.WebControls.ObjectDataSource.ObjectDataSource()
和System.Web.UI.WebControls.ObjectDataSource.ObjectDataSource(string typeName, string selectMethod)
.
请参阅 http://msdn.microsoft.com/en-us/library /system.web.ui.webcontrols.objectdatasource.aspx [ ^ ].
通常,您在asp
元素中编写的所有内容最终都会显示为使用代码创建的对象,而代码中没有创建的内容.
—SA
If you did not pay attention yet: this class has two constructors to create the objects "with the code",System.Web.UI.WebControls.ObjectDataSource.ObjectDataSource()
andSystem.Web.UI.WebControls.ObjectDataSource.ObjectDataSource(string typeName, string selectMethod)
.
See http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.objectdatasource.aspx[^].
Generally, everything you write in yourasp
elements ultimately appears as the objects created with the code, there is nothing created not in the code.
—SA
这篇关于用asp.net创建ObjectDataSource的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文