ASP.NET AJAX 编程(影印版)
分類: 图书,计算机/网络,程序设计,ASP,
作者: (美)温兹(Wenz,C.) 著
出 版 社:
出版时间: 2008-8-1字数: 500000版次: 1页数: 454印刷时间: 2008/08/01开本: 16开印次: 1纸张: 胶版纸I S B N : 9787564112394包装: 平装编辑推荐
“这是关于一个令人瞩止的新平台的权威著作。Wenz为ASP.NET AJAX所写下的文字就如Grisham写的那些法庭小说一样令人惊叹。太棒了!”
——Jeff Prosise,Wintellect
内容简介
传授关于构建丰富Web 2.0风格的相关工作经验并非易事。本书提供微软ASP.NET AJAX 1.0实用而全面的介绍,与ASP.NET给服务器端开发带来的众多益处一样,该框架给Ajax开发也带来了诸多便利。拥有《ASP.NET AJAX编程》,你将学会如何使用Ajax快速创建专业的动态Web页面。
本书运用大量代码样例,全方位展现该框架的各个关键部分,不仅是那些想在应用程序开发中尝试Ajax的ASP.NET开发者,也是任何对ASP.NET AJAX感兴趣的Web开发者的理想读物,无论他们现在在使用什么开发技术。
《ASP.NET AJAX编程》为你提供:
ASP.NET AJAX框架的高级概要;
可剪切/粘贴用于个人应用程序的功能代码;
JavaScript和Ajax的关键要点,以帮助你理解框架所使用的各项独立技术;
反映框架软件包构成的内容编排,包含扩展、控件工具包、Futures CTP和AJAX程序库等;
关于如何编写你自己的控件,以及如何向社区工具包贡献代码的说明;
将标准AJAX程序库用于其他平台(如 PHP)的方法;
用一整章的篇幅讨论使用更新面板(UpdatePanel)控件,让Web页面中的多个部分可以独立更新——该框架最重要的元素之一。
本书此前曾以《Programming Atlas》为名出版,涵盖该微软框架的beta版本,而如今已完全更新并扩展至ASP.NET AJAX 1.0正式发布版。
《ASP.NET AJAX编程》包含了很多难以发现的细节,并通过一些非正式途径完成任务。就这个新框架而言,本书是最理想的知识来源。
作者简介:
Christian Wenz是一位培训师和咨询师,撰写过50余本书籍。他同时使用开源和闭源Web技术开发,曾被授予“微软的ASP/ASP.NET MVP”称号,并且列入Zend的“Who's Who”PHP专家名录。Chritian是独立于浏览器(browser-agnostic)的JavaScript开发专家,还被列入Mozilla贡献者名单(about:credits)。
目录
Preface
Part I. Basics
1. ASP.NET AJAX, Ajax, and ASP.NET
ASP.NET AJAX and Ajax
ASP.NET AJAX and ASP.NET
ASP.NET AJAX Prerequisites and Installation
ASP.NET AJAX Structure and Architecture
A First ASP.NET AJAX Example: Hello User
The ScriptManager Control
Summary
For Further Reading
2. JavaScript
The JavaScript Language
Object-Oriented Programming (OOP)
Accessing Page Elements
DOM Methods
Summary
For Further Reading
3. Ajax
The XMLHttpRequest Object
The XMLDocument Object
JSON
Summary
For Further Reading
Part II. ASP.NET AJAX Extensions
4. Using ASP.NET AJAX JavaScript Extensions
ASP.NET AJAX Shortcuts and Helper Functions
Extensions to Existing JavaScript Objects
ASP.NET AJAX OOP Features for JavaScript
Client Versions of .NET Classes
Summary
For Further Reading
5. Web Services
Error Handling
Page Methods
Maintaining Session State
Exchanging Complex Data with the Server
Consuming Web Services with JavaScript
Summary
For Further Reading
6. UpdatePaneh Refreshing Only Parts of a Page
Making a Page Region Updatable
Summary
For Further Reading
7. Using the ASP.NET AJAX Profile Service
Preparing the Web Site
Accessing Profile Data
Accessing Profile Group Data
Summary
For Further Reading
8. Using the ASP.NET AJAX Authentication Service
Preparing the Application
Login and Logout
Summary
For Further Reading
9. Localizing and Globalizing Applications
Localization
Globalization and Internationalization
Summary
For Further Reading
Part III. ASP.NET AJAX Control Toolkit
10. Using the Control Toolkit
Installing the Control Toolkit
Using the Control Toolkit
Summary
For Further Reading
11. Adding Animation to a Web Page
Animation Framework
Drag-and-Drop
Summary
For Further Reading
12. Autocompleting User Input, Fighting $pam, and More
Creating an Accordion Pane
Maintaining the Relative Position of an Element
Adding Autocomplete Behavior to a TextBox Control
Attaching a Calendar to a Text Field
Dynamically Collapsing a Single Panel
Displaying a Pop Up Over a Page
Fighting Spam in Blogs and in Other Entry Forms
Creating a Tabbed Interface
Summary
For Further Reading
13. Writing Custom Controls and Contributing to the Community
Writing Custom ASP.NET AJAX Controls
Contributing to the Control Toolkit
Summary
For Further Reading
Part IV. ASP.NET AJAX Futures
14. Client Controls
Introducing ASP.NET AJAX Client Controls
Using ASP.NET AJAX Controls
Handling Control Events
Summary
For Further Reading
15. Binding and Validating Data
Data Binding
Data Validation
Summary
For Further Reading
16. Using Behaviors and Components
Using Behaviors
Using Components
Summary
For Further Reading
17. Using Server Data
Using a ListView Control
Creating a Custom Data Source
Summary
For Further Reading
18. Using Remote Web Services
Using the Google Web Service
Using the Amazon Web Service
Transforming a Web Service Result with XSLT
Using the Yahoo! Web Service (and REST and XPath)
Summary
For Further Reading
19. Using Animations
Using Animations
Using an Animation to Create a Fade Effect
Summary
For Further Reading
20. Fixing Bookmarks and Back/Forward Buttons
Fixing with Code
Fixing Bookmarks and Back/Forward Buttons with Controls Using
UpdateHistory
Fixing Bookmarks and Back/Forward Buttons with Controls Using the
ASP.NET AJAX Futures
Summary
For Further Reading
21. Web Parts
Using ASP.NET AJAX with ASP.NET Web Parts
Summary
For Further Reading
Part V. Microsoft AJAX Library
22. Using ASP.NET AJAX with Other Server Technologies
Using ASP.NET AJAX with PHP
Summary
For Further Reading
Part Vl. Appendixes
A. Debugging ASP.NET AJAX Applications
B. XMLHttpRequest Reference
C. DOM Reference
D. ASP.NET AJAX Reference
E. ScriptManager, UpdatePanel, UpdateProgress, and Timer Declarative Reference
Index