没有合适的资源?快使用搜索试试~ 我知道了~
首页ASP.NET 4高级编程(第4版)英文原版:专家指南
"ASP.NET 4高级程序设计(第4版)英文版,由Matthew MacDonald, Adam Freeman和Mario Szpuszta合著,是ASP.NET领域的权威指南,详细讲解了ASP.NET 4的各种特性,包括自定义控件创建、图像处理、加密等高级主题,以及新增的MVC和动态数据功能。书中有专门章节介绍使用Ajax技术和微软的ASP.NET AJAX平台制作响应式页面。"
在ASP.NET 4中,开发者可以利用一系列先进的技术来构建高效且可扩展的Web应用程序。这本书深入探讨了C#语言在ASP.NET框架下的应用,使得程序员能够充分利用.NET Framework 4.0的新特性。以下是书中涉及的一些关键知识点:
1. **ASP.NET 4新特性**:本书详细介绍了ASP.NET 4中的新功能,如MVC(Model-View-Controller)模式,它为开发人员提供了更灵活的Web应用程序结构,强调了代码的可测试性和分离关注点。动态数据则提供了一种简化数据库驱动的Web应用程序开发的方法,允许快速构建数据绑定界面。
2. **自定义控件**:自定义控件是ASP.NET中的一个重要概念,允许开发人员创建自己的服务器控件,以满足特定的需求。书中会指导读者如何设计和实现自定义控件,包括控件的事件处理、属性和方法的定义。
3. **图像处理**:在Web开发中,图像处理是一项常见任务。本书涵盖了如何在ASP.NET中处理图像,包括上传、缩放、裁剪和应用滤镜等操作,这对于创建用户友好的图形界面至关重要。
4. **加密与安全**:书中讨论了如何使用ASP.NET的安全特性来保护应用程序,包括身份验证、授权、加密和哈希算法。这些知识对于确保数据安全和防止未经授权的访问至关重要。
5. **ASP.NET AJAX**:为了提供更好的用户体验,本书专门讲解了如何使用ASP.NET AJAX创建异步交互的页面。这包括了解UpdatePanel、ScriptManager和AJAX控件工具包,以及如何实现局部更新和客户端脚本交互。
6. **Web Forms和MVC的比较**:书中对比了传统的Web Forms模型和MVC架构,帮助读者理解何时选择哪种模型更为合适,以及它们在设计和开发过程中的优缺点。
7. **优化和性能**:在构建复杂网站时,性能优化是必不可少的一部分。本书会提供关于性能监控、调试技巧和最佳实践,以确保应用程序在高负载下仍能高效运行。
8. **部署和维护**:除了开发,部署和持续的维护也是项目生命周期的重要部分。书中可能涵盖IIS配置、版本控制和自动化部署策略等内容。
9. **错误处理和调试**:学习如何有效地调试和处理运行时错误是每个开发者的必备技能。书中将提供有关如何调试ASP.NET应用程序的实用技巧。
《ASP.NET 4高级程序设计(第4版)》是一本全方位的指南,无论你是初学者还是有经验的开发者,都能从中获得宝贵的知识和实践经验,提升你的ASP.NET开发技能。通过阅读这本书,你将能够更好地理解和掌握ASP.NET 4的强大功能,从而开发出更高效、更可靠的Web应用程序。

■ CONTENTS
xiv
Editing Templates in Visual Studio .....................................................................................................436
Binding to a Method ...........................................................................................................................437
Handling Events in a Template ...........................................................................................................439
Editing with a Template......................................................................................................................440
Client IDs in Templates.......................................................................................................................447
The ListView ................................................................................................................447
Grouping .............................................................................................................................................451
Paging.................................................................................................................................................453
The DetailsView and FormView ...................................................................................454
The DetailsView ..................................................................................................................................454
The FormView.....................................................................................................................................457
Advanced Grids............................................................................................................459
Summaries in the GridView ................................................................................................................459
A Parent/Child View in a Single Table ................................................................................................461
Editing a Field Using a Lookup Table..................................................................................................464
Serving Images from a Database .......................................................................................................466
Detecting Concurrency Conflicts ........................................................................................................472
Summary .....................................................................................................................476
■ Chapter 11: Caching and Asynchronous Pages ...............................................477
Understanding ASP.NET Caching.................................................................................477
Output Caching ............................................................................................................478
Declarative Output Caching ................................................................................................................479
Caching and the Query String.............................................................................................................480
Caching with Specific Query String Parameters.................................................................................481
Custom Caching Control .....................................................................................................................481
Caching with the HttpCachePolicy Class ............................................................................................483
Post-Cache Substitution and Fragment Caching................................................................................484
Cache Profiles.....................................................................................................................................487
Cache Configuration ...........................................................................................................................487
Output Caching Extensibility...............................................................................................................488
Data Caching ...............................................................................................................493
Adding Items to the Cache .................................................................................................................494

■ CONTENTS
xv
A Simple Cache Test...........................................................................................................................496
Cache Priorities ..................................................................................................................................498
Caching with the Data Source Controls..............................................................................................498
Cache Dependencies ...................................................................................................502
File and Cache Item Dependencies ....................................................................................................502
Aggregate Dependencies ...................................................................................................................503
The Item Removed Callback ...............................................................................................................504
Understanding SQL Cache Notifications.............................................................................................507
How Cache Notifications Work ...........................................................................................................508
Enabling Notifications.........................................................................................................................508
Creating the Cache Dependency ........................................................................................................509
Custom Cache Dependencies ......................................................................................510
A Basic Custom Cache Dependency...................................................................................................510
A Custom Cache Dependency Using Message Queues ......................................................................512
Asynchronous Pages ...................................................................................................514
Creating an Asynchronous Page.........................................................................................................515
Querying Data in an Asynchronous Page............................................................................................517
Handling Errors...................................................................................................................................519
Using Caching with Asynchronous Tasks...........................................................................................522
Multiple Asynchronous Tasks and Timeouts ......................................................................................524
Summary .....................................................................................................................526
■ Chapter 12: Files and Streams.........................................................................527
Working with the File System......................................................................................527
The Directory and File Classes ...........................................................................................................528
The DirectoryInfo and FileInfo Classes ...............................................................................................530
The DriveInfo Class.............................................................................................................................533
Working with Attributes......................................................................................................................534
Filter Files with Wildcards ..................................................................................................................536
Retrieving File Version Information ....................................................................................................537
The Path Class....................................................................................................................................538
A File Browser ....................................................................................................................................541

■ CONTENTS
xvi
Reading and Writing Files with Streams......................................................................546
Text Files ............................................................................................................................................547
Binary Files.........................................................................................................................................549
Uploading Files ...................................................................................................................................550
Making Files Safe for Multiple Users..................................................................................................552
Compression.......................................................................................................................................557
Serialization.................................................................................................................558
Summary .....................................................................................................................561
■ Chapter 13: LINQ ..............................................................................................563
LINQ Basics..................................................................................................................563
Deferred Execution .............................................................................................................................565
How LINQ Works.................................................................................................................................566
LINQ Expressions................................................................................................................................567
LINQ Expressions “Under the Hood” ..................................................................................................575
LINQ to DataSet............................................................................................................578
Typed DataSets ..................................................................................................................................581
Null Values..........................................................................................................................................581
LINQ to Entities ............................................................................................................581
Generating the Data Model.................................................................................................................582
The Data Model Classes .....................................................................................................................583
Entity Relationships............................................................................................................................586
Querying Stored Procedures...............................................................................................................587
LINQ to Entities Queries “Under the Hood”.........................................................................................589
Database Operations ...................................................................................................595
Inserts.................................................................................................................................................595
Updates ..............................................................................................................................................598
Deletes................................................................................................................................................598
Managing Concurrency.......................................................................................................................598
Handling Concurrency Conflicts .........................................................................................................599
The EntityDataSource Control......................................................................................604
Displaying Data...................................................................................................................................604

■ CONTENTS
xvii
Getting Related Data...........................................................................................................................609
Editing Data ........................................................................................................................................610
Validation............................................................................................................................................611
Using the QueryExtender Control.................................................................................612
Using a SearchExpression ..................................................................................................................613
Using a RangeExpression ...................................................................................................................614
Using a PropertyExpression................................................................................................................614
Using a MethodExpression .................................................................................................................615
Summary .....................................................................................................................616
■ Chapter 14: XML...............................................................................................617
When Does Using XML Make Sense? ..........................................................................617
An Introduction to XML ................................................................................................618
The Advantages of XML......................................................................................................................619
Well-Formed XML ...............................................................................................................................620
XML Namespaces ...............................................................................................................................621
XML Schemas.....................................................................................................................................622
Stream-Based XML Processing ...................................................................................624
Writing XML Files................................................................................................................................624
Reading XML Files ..............................................................................................................................628
In-Memory XML Processing.........................................................................................631
The XmlDocument ..............................................................................................................................632
The XPathNavigator ............................................................................................................................636
The XDocument ..................................................................................................................................638
Searching XML Content ...............................................................................................643
Searching with XmlDocument ............................................................................................................644
Searching XmlDocument with XPath..................................................................................................646
Searching XDocument with LINQ........................................................................................................649
Validating XML Content................................................................................................651
A Basic Schema..................................................................................................................................651
Validating with XmlDocument ............................................................................................................652
Validating with XDocument ................................................................................................................654

■ CONTENTS
xviii
Transforming XML Content ..........................................................................................654
A Basic Stylesheet..............................................................................................................................655
Using XslCompiledTransform .............................................................................................................656
Using the Xml Control.........................................................................................................................657
Transforming XML with LINQ to XML..................................................................................................658
XML Data Binding ........................................................................................................660
Nonhierarchical Binding .....................................................................................................................660
Using XPath ........................................................................................................................................662
Nested Grids .......................................................................................................................................665
Hierarchical Binding with the TreeView .............................................................................................667
Using XSLT..........................................................................................................................................669
Binding to XML Content from Other Sources......................................................................................671
Updating XML Through the XmlDataSource .......................................................................................672
XML and the ADO.NET DataSet....................................................................................672
Converting the DataSet to XML...........................................................................................................673
Accessing a DataSet As XML..............................................................................................................675
Summary .....................................................................................................................678
Part 3: Building ASP.NET Websites.......................................................................679
■ Chapter 15: User Controls ................................................................................681
User Control Basics .....................................................................................................681
Creating a Simple User Control ..........................................................................................................682
Converting a Page to a User Control...................................................................................................684
Adding Code to a User Control.....................................................................................684
Handling Events..................................................................................................................................684
Adding Properties ...............................................................................................................................685
Using Custom Objects ........................................................................................................................688
Adding Events.....................................................................................................................................690
Exposing the Inner Web Control .........................................................................................................694
Dynamically Loading User Controls .............................................................................695
Portal Frameworks .............................................................................................................................695
剩余1616页未读,继续阅读
209 浏览量
202 浏览量
1193 浏览量

zgc988
- 粉丝: 27
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

最新资源
- 网上商城系统实现:JSP+Servlet+JavaBean源码
- TCPView3.05:网络连接状态监控利器
- Java开发技术大全:500个实用源代码解析
- 非营利乒乓球组织管理系统SISTEMA-ASPATEM开发指南
- 亿美短信接口调用详解:HTTP GET与POST方法
- Windows窗口动态截图工具使用教程
- Springboot与Kettle整合实战教程
- Jenkins Pipeline插件:简化复杂任务的利器
- 汉化版Xshell6与Xftp6压缩包使用指南
- Jarrun.zip - 一键将Jar包部署为Windows服务
- 原生JS实现全国城市三级联动功能
- OPC DA服务器与客户端开发全面指南
- 探索Java语言存储位置的重要性与方法
- 防污染直线平台底座设计文档
- AngularJS深入解析:构建Web应用的现代框架
- 多米DJ客户端v0.2.1:全新的音乐互动体验平台
安全验证
文档复制为VIP权益,开通VIP直接复制
