ASP.NET Ajax Library
ASP.NET Ajax Library
微软提供的JavaScript library for ASP.NET 3.5+,能与jQuery无缝连接并作为jQuery的插件自动加载,完全实现客户端处理Ajax应用
Ajax Control Toolkit controls
自ASP.NET 2.0开始微软提供的Ajax扩展,不同的ASP.NET版本对应不同的类库,其依赖于Server端技术,利用Web Form Control开发Ajax应用。
编写Ajax应用的四种方式
1、Imperative — Instantiate the control in JavaScript.
2、Imperative using jQuery — Instantiate the control using jQuery plug-in syntax.
3、Declarative — Instantiate the control in HTML markup.
4、ASP.NET Web Form Control — Instantiate the control with a server-side ASP.NET Web Forms control.
带*debug.js可以在VS中出现智能提示
Ajax Script Loader
Script Loader在Start.js中,可以加载ASP.NET Ajax Library scripts ,jQuery scripts和jQuery Validation scripts,并能动态加载与管理需要的脚本及任何引用
<script type="text/javascript">
Sys.require([Sys.scripts.ApplicationServices], function() {
//Application services loaded
});
</script>
通过Sys.require加载脚本,集合Sys.scripts定义了可加载的脚本
Sys.scripts Value |
Script |
Description |
AdoNet |
MicrosoftAjaxAdoNet.js |
Allows client-side code to interact with ADO.NET Data Services. |
ApplicationServices |
MicrosoftAjaxApplicationServices.js |
Provides access to ASP.NET profile, authentication and role services. |
ComponentModel |
MicrosoftAjaxComponentModel.js |
Provides behavior and component functionality. |
Core |
MicrosoftAjaxCore.js |
Base script that contains core ASP.NET Ajax Library functionality and JavaScript language enhancements. |
DataContext |
MicrosoftAjaxDataContext.js |
Contains the DataContext and AdoNetDataContext client-side classes. |
Globalization |
MicrosoftAjaxGlobalization.js |
Contains language globalization functionality for dates, times and numbers. |
History |
MicrosoftAjaxHistory.js |
Provides browser history functionality for Ajax applications. |
jQuery |
jquery-1.3.2.min.js |
Minified jQuery library script. |
jQueryValidate |
jquery.validate.min.js |
Minified jQuery Validate script used to validate form elements. |
Network |
MicrosoftAjaxNetwork.js |
Contains core networking features used to communicate with remote sites and services. |
Serialization |
MicrosoftAjaxSerialization.js |
Provides object serialization and deserialization functionality. |
Templates |
MicrosoftAjaxTemplates.js |
Provides client-side template rendering functionality. |
WebServices |
MicrosoftAjaxWebServices.js |
Contains a web service proxy class used to call web services. |