ASP.NET AJAX入门系列(1):概述
经常关注我的Blog的朋友可能注意到了,在我Blog的左边系列文章中,已经移除了对Atlas学习手记系列文章的推荐,因为随着ASP.NET AJAX 1.0 Beta版的发布,它们已经不再适用,为了不继续误导广大朋友,所以不再作为推荐系列文章,如果有需要参考的朋友,可以直接到随笔分类中查看。
ASP.NET AJAX Beta改动如此之大,鉴于又没有很好的中文参考资料,所以决定最近开始写作ASP.NET AJAX入门系列,这个系列我会把ASP.NET AJAX当作一个全新的东西去对待,不再考虑以前的Atlas,把自己对ASP.NET AJAX的研究与大家分享,便于初学的朋友少走一些弯路。对Atlas熟悉的朋友可以推荐看Dflying Chen的《拥抱变化——从Atlas到ASP.NET AJAX系列》,以及老赵的《深入Atlas系列》。由于个人的能力和掌握的程度有限 ,难免出现错误和遗漏的地方,还请大家多多理解和指正。
OK,让我们从这里开始!
一.ASP.NET AJAX组成部分
在ASP.NET AJAX官方网站上有如下三个下载:
1.ASP.NET AJAX:这部分是ASP.NET AJAX的核心部分,包括了核心AJAX类型系统,网络协议层(networking stack),组件模型,扩展器(extender)基类,以及与ASP.NET集成的服务器端功能(包括广受欢迎的ScriptManager,UpdatePanel,和 Timer控件)。功能列表如下:
|
服务端功能列表 |
|
Asynchronous client-to-server networking |
|
Authentication as a Web service |
|
ControlExtender class |
|
Profile as a Web service |
|
ScriptManager and ScriptManagerProxy controls |
|
Static page methods as Web services |
|
Timer control |
|
UpdatePanel control |
|
UpdateProgress control |
|
客户端功能列表 |
|
Authentication for JavaScript |
|
Behavior class |
|
Calling .asmx Web services from JavaScript |
|
Component class |
|
Control class |
|
Debug class |
|
JavaScript Array type extensions |
|
JavaScript Boolean type extensions |
|
JavaScript Error type extensions |
|
JavaScript Number type extensions |
|
JavaScript Object type extensions |
|
JavaScript String type extensions |
|
JSON serialization |
|
Profile for JavaScript |
|
Trace class |
2.ASP.NET AJAX “Value-Add”CTP:ASP.NET AJAX社区支持的“增值”CTP部分,包括了以前各个Atlas CTP版本包含的,但并不在完全支持的“核心”1.0 版本内的额外的高级特性。通过进一步的反馈,这些将会逐步稳定的增加到核心1.0中去。功能列表如下:
|
服务端功能列表 |
|
AutoCompleteExtender class |
|
Cross-browser Web Parts drag-and-drop |
|
DragOverlayExtender control |
|
PopupExtender class |
|
客户端功能列表 |
|
Actions components |
|
AutoCompleteBehavior class |
|
BatchResponse class |
|
Binding component |
|
Button control |
|
Checkbox control |
|
Click behavior |
|
Counter class |
|
Cross-browser Web Parts |
|
Data control |
|
DragDropList control |
|
DragDropManager component |
|
DraggableListItem control |
|
FadeAnimation component Floating behavior |
|
Hover behavior |
|
Hyperlink control |
|
Image control |
|
Input control |
|
Label control |
|
Layout behavior |
|
Opacity behavior |
|
Popup behavior |
|
Selector control |
|
ServiceMethodRequest class |
|
Sys.Data and Sys.UI.Data namespaces |
|
Textbox control |
|
Timer control |
|
Validator controls |
|
xml-script support |
3.ASP.NET AJAX Control Toolkit:包含了基于ASP.NET AJAX 1.0 版“核心”下载版本的28个非常酷的免费AJAX控件。它是一个开源项目,由微软和非微软开发人员共同开发的,去CodePlex下载代码。
二.安装ASP.NET AJAX
1.在安装ASP.NET AJAX 1.0 Beta之前,需要先卸载以前所有的CTP版本。
2.下载ASP.NET AJAX 1.0 Beta安装包,安装时Microsoft.Web.Extensions.dll程序集将被安装在GAC(Global Assembly Cache)中,所以使用时不需要再在Web站点的Bin文件夹中包括该程序集。
3.下载安装ASP.NET AJAX “Value-Add”CTP和ASP.NET AJAX Control Toolkit。列表如下:
|
名称 |
描述 |
|
Accordion: |
Create efficient UI from multiple panes with this animated control. |
|
AlwaysVisibleControl |
Docks a panel to a corner of the browser window and keeps it visible even when the user scrolls. |
|
Animation |
Adds powerful, easy to use animations to any element or control. |
|
CascadingDropDown |
Easily link drop downs, complete with asynchronous population and no postbacks! |
|
CollapsiblePanel |
This extender allows panels on your page to collapse and expand with no code. |
|
ConfirmButton |
This extender adds a confirm dialog to any Button, LinkButton, or ImageButton control. |
|
DragPanel |
Makes any panel into an object that you can drag around the page. |
|
DropDown |
This extender can wrap any control to provide a SharePoint-style drop-down menu that is attached to the control. |
|
DropShadow |
This extender adds attractive drop shadows to any control on the page |
|
DynamicPopulate |
Replace the contents of a page element with the result of a web-service call. |
|
FilteredTextBox |
Restrict the types of input that text boxes will accept. |
|
HoverMenu |
Allows UI to pop up next to a control when the mouse hovers over it. |
|
ModalPopup |
Allows you to show styled modal UI without using HTML dialogs. |
|
MutuallyExlcusiveCheckBox |
By adding a number of checkboxes to the same “Key”, only one checkbox with the specified key can be checked at a time. |
|
NoBot |
Applies simple rules to prevent automated bots or scripts from posting to a page. |
|
NumericUpDown |
Allow users to easily increase and decrease values using the mouse to scroll through values. |
|
PagingBulletedList |
Add paging and sorting to long bulleted lists. |
|
PasswordStrength |
Give your users visual cues to help them create secure passwords. |
|
PopupControl |
This extender turns any panel into a popup. |
|
Rating |
Let your users easily give feedback by rating content with this easy-to-use control. |
|
ReorderList |
This control is a full-featured data-bound control that allows its elements to be reordered on the client via drag and drop. |
|
ResizableControl |
Allow users to dynamically resize content, right in the browser |
|
RoundedCorners |
Rounds the corners of any control for a clean, professional look! |
|
Slider |
Adds an elegant scrollbar-like user interface for setting numeric values. |
|
TextBoxWatermark |
This extender adds "watermark" prompt text to TextBoxes on the page. |
|
ToggleButton |
This extender turns an ASP.NET CheckBox into an image checkbox. |
|
UpdatePanelAnimation |
Animates page elements corresponding to hidden postback activity. |
|
ValidatorCallout |
This extender enhances the functionality of existing ASP.NET validators. |
三.在Visual Studio.NET 2005开发基于ASP.NET AJAX的应用
安装完ASP.NET AJAX后,打开Visual Studio.NET 2005中新建Web Site,在项目模板中会出现一项ASP.NET AJAX-enabled Web site,直接选择它就可以了,如下图:
新建完成的项目中会自动在Web.config中做好相关的配置,并且AJAXExtensionToolbox.dll已经添加到了VS的工具箱中,不需要再手工添加。
概述篇简单的介绍这里,从下一篇开始学习ASP.NET AJAX中的每一项具体的功能。
下篇预告:ASP.NET AJAX入门系列(2):使用ScriptManager
ASP.NET AJAX入门系列(1):概述的更多相关文章
- ASP.NET AJAX入门系列(4):使用UpdatePanel控件(一)
UpdatePanel可以用来创建丰富的局部更新Web应用程序,它是ASP.NET 2.0 AJAX Extensions中很重要的一个控件,其强大之处在于不用编写任何客户端脚本,只要在一个页面上添加 ...
- ASP.NET AJAX入门系列
ASP.NET AJAX入门系列将会写关于ASP.NET AJAX一些控件的使用方法以及基础知识,其中部分文章为原创,也有一些文章是直接翻译自官方文档,本部分内容会不断更新. 目录 ASP.NET A ...
- ASP.NET AJAX入门系列(3):使用ScriptManagerProxy控件
在ASP.NET AJAX中,由于一个ASPX页面上只能有一个ScriptManager控件,所以在有母版页的情况下,如果需要在Master-Page和Content-Page中需要引入不同的脚本时, ...
- ASP.NET AJAX入门系列(2):使用ScriptManager控件
ScriptManager控件包括在ASP.NET 2.0 AJAX Extensions中,它用来处理页面上的所有组件以及页面局部更新,生成相关的客户端代理脚本以便能够在JavaScript中访问W ...
- ASP.NET AJAX入门系列(10):Timer控件简单使用
本文主要通过一个简单示例,让Web页面在一定的时间间隔内局部刷新,来学习一下ASP.NET AJAX中的服务端Timer控件的简单使用. 主要内容 Timer控件的简单使用 1.添加新页面并切换到设计 ...
- ASP.NET AJAX入门系列(7):使用客户端脚本对UpdateProgress编程
在本篇文章中,我们将通过编写JavaScript来使用客户端行为扩展UpdateProgress控件,客户端代码将使用ASP.NET AJAX Library中的PageRequestManager, ...
- ASP.NET AJAX入门系列(6):UpdateProgress控件简单介绍
在ASP.NET AJAX Beta2中,UpdateProgress控件已经从“增值”CTP中移到了ASP.NET AJAX核心中.以下两篇关于UpdateProgress的文章基本翻译自ASP.N ...
- ASP.NET AJAX入门系列(11):在多个UpdatePanle中使用Timer控件
本文将使用Timer控件更新两个UpdatePanel控件,Timer控件将放在UpdatePanel控件的外面,并将它配置为UpdatePanel的触发器,翻译自官方文档. 主要内容 在多个Upda ...
- ASP.NET AJAX入门系列(5):使用UpdatePanel控件(二) UpdatePanel
UpdatePanel可以用来创建丰富的局部更新Web应用程序,它是ASP.NET 2.0 AJAX Extensions中很重要的一个控件,其强大之处在于不用编写任何客户端脚本,只要在一个页面上添加 ...
随机推荐
- REST easy with kbmMW #17 – Database 6 – Existing databases
kbmMW已经包含了非常精细的功能来确定和解释数据库中表的元数据. 在下一版本中,这个功能将得到进一步加强,可以导入现有数据库中的表,自动创建与表相匹配的ORM实体类. 这意味着你能够使用kbmMW的 ...
- 2019-04-08-day027-网络编程基础
网络编程 基于同一台机器上的多个程序之间通信 可以基于文件 基于多台机器之间的通信 可以基于网络 web程序两种架构完成的: C/S :client(客户端) server(服务端) B/S :bro ...
- Day8作业及默写
1,有如下文件,a1.txt,里面的内容为: 老男孩是最好的培训机构, 全心全意为学生服务, 只为学生未来,不为牟利. 我说的都是真的.哈哈 分别完成以下的功能: 将原文件全部读出来并打印. with ...
- Map.putAll()用法
import Java.util.HashMap; public class Map_putAllTest {public static void main(String[] args){ //两 ...
- CentOS7+Nginx配置Tomcat负载均衡环境
1.准备两个Tomcat 配置两个Tomcat一个端口是8080另外一个端口是8081,分别在webapps下面添加一个测试用的web项目,修改index.jsp文件,8080端口的index.jsp ...
- A + B 问题
要求: 问题:给出两个整数a和b, 求他们的和, 但不能使用 + 等数学运算符. 示例: 如果 a=1 并且 b=2,返回3 代码: package main import ( "fmt&q ...
- SQL*Plus连接符拼接输出
在日常工作中,可能需要使用重复的命令,修改的只是某个不同字段的值,可以使用连接字符串进行拼接 #本篇文档: 一.使用连接符拼接SQL 二.Spool输出查询结果 三.Spool输出xml/ html ...
- LINUX添加磁盘
博客网站原因,图片不能很好插入,望谅解 第一步:设置加载硬盘.由于是虚拟硬盘大小,不会一开始直接占用全部空间,使用多少占用多少,为了避免后期磁盘满前期设计大容量 第二步加载查看磁盘: 再执行fdisk ...
- 数据结构作业——图的存储及遍历(邻接矩阵、邻接表+DFS递归、非递归+BFS)
邻接矩阵存图 /* * @Author: WZY * @School: HPU * @Date: 2018-11-02 18:35:27 * @Last Modified by: WZY * @Las ...
- HDU 1000
A + B Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total ...