...公司的一位负责人Peter Vogel说,在上一期栏目(支持ObjectDataSource控件)中,我开始研究创建能够与ObjectDataSource(对象数据源)一起工作的对象所需要的代码。
基于28个网页-相关网页
首先拖拉了一个GridView控件,选择配置数据源,新建数据源(ObjectDataSource)在新建数据数据源的向导里面选择了带参数的select方法。在定义参数的步骤里面直接选择默认的。
基于20个网页-相关网页
ObjectDataSource Web 伺服器控制项概观 ; 服务器控件概述
As we'll see in future tutorials, ASP.NET 2.0's ObjectDataSource makes it easy to declaratively access data from a class.
我们将在后面的教程中看到,ASP.NET 2.0的ObjectDataSource使从一个类中访问数据更加容易。
Now that I've finished the overview, I will compare and contrast the retrieval and modification of data using both the SqlDataSource and the ObjectDataSource.
既然我已经完成了概述,那么我将对使用SqlDataSource和ObjectDataSource来检索和修改数据进行一下对比。
Instead, they are replaced with other properties which tell the ObjectDataSource control which business class to instantiate and which method to use to retrieve or modify the data.
相反,它们被替换为告诉ObjectDataSource控件实例化哪个业务类以及使用哪个方法来检索或修改数据的其他属性。
应用推荐