网站导航免费论文 原创论文 论文搜索 原创论文 网学软件 学术大家 资料中心 会员中心 问题解答 原创论文 大学论文导航 设计下载 最新论文 下载排行 原创论文 论文源代码
返回网学首页
网学联系
最新论文 推荐专题 热门论文 素材专题
当前位置: 网学 > 编程文档 > ASP.net > 正文

MigratingfromASP.NET1.xtoASP.NET2.0

来源:http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 12/10/12
"~/Home.aspx" mappedUrl="~/Default.aspx?tabid=0" /></urlMappings>

the configuration shown above would map (and redirect) all requests for Home.aspx to Default.aspx?tabid=0. Users can bookmark the short link, and the short link will be displayed on their browser.

Data Access and Data Sources

asp.net 1.x data access leveraged ADO.NET connections and commands to provide data that could be bound to various ASP.NET controls. ASP.NET 2.0 improves on the relationship with ADO.NET by providing data sources that encapsulate the code to create both connections and commands in a single XML tag within the Web.config file. As with ASP.NET 1.x, you can use a wizard inside of Visual Studio 2005 to create these data sources. ASP.NET 2.0 ships with data sources for:

  • microsoft Access. The access data source can automatically connect to and query an Access database.
  • objects. The ojbectdatasource control is a data-layer abstraction on top of a middle tier or other set of objects. You can use the Object Data Source when you want to treat one or more sets of objects as data that can be linked to data-bound controls.
  • dataset. The datasetdatasource links to partially tabular data, such as a comma-separated file or XML file.
  • xml. The xmldatasource links to hierarchical data in an XML file. The primary difference between the xmldatasource and the datasetdatasource is that the xmldatasource is better suited for binding to hierarchical controls, like a treeview, whereas the datassetdatasource is better suited to tabular controls, like the datagrid.
  • site Map. The sitemapdatasource provides a data source for the site navigation controls, including bread crumbs.

for more details on data sources, see Data Access in ASP.NET 2.0.

New Data-Bound Controls

asp.net 2.0 also includes two new data-bound controls. The first control, gridview, expands on the datagrid by providing configurable code for editing cells, displaying rows on multiple pages, sorting, deletion, selection, and other common behaviors.

figure 9. Configuring a GridView

the second control, detailsview, provides a detail view that complements both gridview and datagrid.

figure 10: DetailsView control

the detailsview control displays one record at a time, giving you much greater control over how a record is displayed, edited, deleted, or created.

Web Applications for Mobile Devices

if you have ever developed Web applications for ASP.NET, you have encountered the Microsoft Mobile Internet Toolkit (MMIT) and the special mobile controls. In ASP.NET 2.0, the MMIT and mobile controls have been rolled into the main framework. However, ordinary ASP.NET 2.0 controls now use an adaptive rendering model that provides the same behavior offered by the older mobile controls, only in a more flexible and easy-to-use package.

New Features in ASP.NET 2.0

almost every major update to an API or framework involves both changes to existing features and new features and enhancements. In this section, we will look at several of the new feature

网学推荐

免费论文

原创论文

设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号