...
首页> 外文期刊>MSDN Magazine >Data Source Controls in ASP.NET 2.0
【24h】

Data Source Controls in ASP.NET 2.0

机译:ASP.NET 2.0中的数据源控件

获取原文
获取原文并翻译 | 示例
           

摘要

ASP.NET 2.0 introduces a series of new tools that improve data access including several data source and data bound controls. The new assortment of data source controls can eliminate a ton of repetitive code that was required in ASP.NET 1.x For example, you can easily associate SQL statements or stored procedures with data source controls and bind them to data bound controls. Even more impressive, the ObjectDataSource control allows you to take advantage of the simplified development and reduction of code but still allows you to abstract your business and data access logic in separate tiers of your n-tiered architecture. Before.NET, building data grids with traditional ASP often required you to write a lot of code to build an HTML table on the fly while looping through an ADO Recordset. ASP.NET 1 .x made this type of development easier by allowing you to bind an XML-based DataSet to the ASP.NET DataGrid control. This reduced the code required to generate the grid. However, both traditional ASP and ASP.NET 1.x require code to implement paging, sorting, editing and row-selection features. With the improvements in ASP.NET 2.0, this code can be significantly reduced to produce a data-filled grid with full paging, sorting, and editing features.
机译:ASP.NET 2.0引入了一系列改进数据访问的新工具,其中包括多个数据源和数据绑定控件。新的数据源控件组合可以消除ASP.NET 1.x中所需的大量重复代码。例如,您可以轻松地将SQL语句或存储过程与数据源控件相关联并将它们绑定到数据绑定控件。更令人印象深刻的是,ObjectDataSource控件使您能够利用简化的开发和减少的代码,但仍可以使您在n层体系结构的不同层中抽象业务和数据访问逻辑。在.NET之前,使用传统的ASP构建数据网格通常需要您编写大量代码,以在遍历ADO Recordset的过程中动态构建HTML表。通过允许您将基于XML的DataSet绑定到ASP.NET DataGrid控件,ASP.NET 1 .x使这种类型的开发更加容易。这减少了生成网格所需的代码。但是,传统的ASP和ASP.NET 1.x都需要代码来实现分页,排序,编辑和行选择功能。通过ASP.NET 2.0中的改进,可以显着减少此代码,以生成具有完整分页,排序和编辑功能的数据填充网格。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号