简体   繁体   English

System.Web.Extensions的用途是什么?

[英]What is System.Web.Extensions for?

By default ASP.NET 3.5 Web App project has references to assemblies System.Data.DataSetExtensions.dll and System.Web.Extensions.dll . 默认情况下,ASP.NET 3.5 Web App项目具有对程序集System.Data.DataSetExtensions.dllSystem.Web.Extensions.dll引用。

With System.Data.DataSetExtensions everything is clear for me, it contains such useful extension methods as DataTable.AsEnumerable() and DataTable.CopyToDataTable() . 有了System.Data.DataSetExtensions一切对我来说都是显而易见的,它包含有用的扩展方法,例如DataTable.AsEnumerable()DataTable.CopyToDataTable()

And what about System.Web.Extensions.dll ? System.Web.Extensions.dll呢? What useful members could you mention to use? 您能提及使用哪些有用的成员?

System.Web.Extensions与System.Data.DataSetExtensions之类的扩展方法无关,它包含ASP.NET AJAX Framework

System.Web.Extensions contains all the classes and support classes for ASP.NET AJAX controls. System.Web.Extensions包含ASP.NET AJAX控件的所有类和支持类。 It also includes the classes for JSON serialization and pretty much anything else that involves communication with the ASP.NET runtime from JavaScript (and vice versa). 它还包括用于JSON序列化的类,以及几乎所有其他涉及通过JavaScript与ASP.NET运行时进行通信的类(反之亦然)。

From this page 从这个页面

The system.web.extensions element enables you to configure ASP.NET applications that can be used by AJAX-enabled clients, Windows Communication Foundation (WCF) clients (SOAP clients), and .NET Framework clients. 使用system.web.extensions元素,可以配置ASP.NET应用程序,这些应用程序可以由启用AJAX的客户端,Windows Communication Foundation(WCF)客户端(SOAP客户端)和.NET Framework客户端使用。 The configuration settings include the following: 配置设置包括以下内容:

  1. Enabling ASP.NET application services through the authenticationService, roleService, and profileService elements. 通过authenticationService,roleService和profileService元素启用ASP.NET应用程序服务。
  2. Configuring the script handler through the enableCompression and enableCaching attributes of the scriptResourceHandler element. 通过scriptResourceHandler元素的enableCompression和enableCaching属性配置脚本处理程序。
  3. Configuring JSON serialization through the jsonSerialization element. 通过jsonSerialization元素配置JSON序列化。

System.Web.Extensions.dll包含所有ASP.NET Ajax优点,例如UpdatePanel控件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用system.web.extensions托管网站 - Cannot host website with system.web.extensions 无法解析System.Web.Extensions程序集 - System.Web.Extensions Assembly cannot be resolved 什么是最好的免费,Ajax.NET(System.Web.Extensions 3.5)兼容的富文本框控件? - What is the best free, Ajax.NET (System.Web.Extensions 3.5) compatible Rich Text Box control? 我在哪里可以找到程序集 System.Web.Extensions dll? - Where can I find the assembly System.Web.Extensions dll? 无法将System.Web.Extensions应用于PartialTrustVisibleAssemblies列表 - Cannot Apply System.Web.Extensions to PartialTrustVisibleAssemblies List C#Framework 4.5不包含System.Web.Extensions - c# framework 4.5 not include System.Web.Extensions 无法加载文件或程序集“ System.Web.Extensions” - Could not load file or assembly 'System.Web.Extensions' 无法添加System.Web.Extensions程序集作为参考 - can not add System.Web.Extensions Assembly as reference 如何添加 System.Web.Extensions 以使 JavaScriptSerializer 工作 - How to add System.Web.Extensions to get JavaScriptSerializer work 我是否需要web.config值配置 - >运行时 - > System.Web.Extensions的assemblyBinding? - Do I need the web.config values configuration -> runtime -> assemblyBinding for System.Web.Extensions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM