NetTiers学习总结6--WebUI.docVIP

  • 2
  • 0
  • 约1.86万字
  • 约 24页
  • 2017-06-12 发布于北京
  • 举报
Web Library Edit What is the Web Library? The NetTiers Web Library is a set of Controls and Objects that provide powerful tools to make your web development projects with NetTiers much easier and more efficient. Edit Typed DataSource Controls -vs- EntityDataSource The Web Library offers both Strongly Typed DataSource Controls as well as the more generic EntityDataSource. The strongly typed DataSource controls are great because by binding to them you have all your objects properties and methods pre-defined and at your disposal. All of this shows up in IntelliSense. These maintain the ObjectDataSource controls event model, except they are geared to your data, relationships, and domain. On the other hand, the EntityDataSource control is a generic datasource and is useful because it uses 100% reflection to work with the data providers. This is great when you need to change the type at runtime, or maybe you have written your own methods within the DataAccessLayer that you would like to call, then you would simply use the EntityDataSource control. Edit User Interface controls The Web Library adds a collection of user interface controls to your toolbox such as the strongly bound repeaters, EntityGridView, EntityDropDownList (and bound field version), BoundRadioButtonField, HyperlinkField, EntityLabel and a GridViewSearchPanel. Edit Web.Config Configuration To use the NetTiers Web Library youll need to setup your web.config... 1configuration 2 system.web 3 pages 4 controls 5 !-- register web controls for use on all pages -- 6 add tagPrefix=data namespace=Northwind.Web.Data assembly=Northwind.Web/ 7 add tagPrefix=data namespace=Northwind.Web.UI assembly=Northwind.Web/ 8 /controls 9 /pages 10 httpModules 11 !-- 12 Enable transaction-per-request pattern; 13 This module allows a single TransactionManager to be shared by 14 all data access operations executed during a page request. 15

文档评论(0)

1亿VIP精品文档

相关文档