Presentation is loading. Please wait.

Presentation is loading. Please wait.

Visual Studio 2010 和 .NET Framework 4 培训研讨会

Similar presentations


Presentation on theme: "Visual Studio 2010 和 .NET Framework 4 培训研讨会"— Presentation transcript:

1 Visual Studio 2010 和 .NET Framework 4 培训研讨会

2 ASP.NET Web Forms 4 中的新功能 姓名 职务 组织 电子邮件 ESTIMATED TIME: 60 minutes

3 目标 客户端开发如何变得更加轻松? 如何实现对应用程序的更多控制? 如何增强现有的服务器控件?

4 客户端 ID 控制层次 1) 主页(无 ID) 2) 用户控制 (“HeaderForm”) 3) 下拉列表 (“States”)
ctl00 ctl00_HeaderForm ctl00_HeaderForm_States

5 ViewState 模式 如果您这样做…… 那么这样…… 或这样…… 都无法运行

6 客户端 ID ViewState 模式

7 Product/{name} -> Product.aspx
路由 ASP.NET 路由 路由: Product/{name} -> Product.aspx 请求: Products/Bikes WebForms 页面 文件名: Product.aspx 路由值: Name = “Bikes” 响应

8 路由

9 QueryExtender LINQ To SQL 数据源 实体 数据源 使用任意语言 难以扩展 使用 Entity SQL 难以扩展
使用参数 执行高级查询非常容易

10 现有控件做了哪些投资?

11 Misc 控制增强 FormView 可以移除 superflous <table> GridView 存储时允许标题列样式
无需 ViewState 即可工作 支持持久选择 3) ListView 不再需要 LayoutTemplate

12 Misc 控制增强(续上页) CompareValidator 支持 Time 和 DateTime 2) LinqDataSource
3) DataPager 可与 GridView、DetailsView 和 FormView 配合使用

13 QueryExtender 控制增强

14 总结 新的客户端 ID 和 ViewState 模式功能使您能更好地控制应用程序 路由集成使您能轻松自定义站点地图
新的服务器控制增强可以更轻松地利用现有控制套件

15


Download ppt "Visual Studio 2010 和 .NET Framework 4 培训研讨会"

Similar presentations


Ads by Google