Asp.net Ajax configuration, usage Summary

Source: Internet
Author: User

1. First download asp.net ajax from ajax.asp.net
Http://www.asp.net/ajax/downloads/

2. Configure web. config:

In the httphandlers section under system. web, add:

<Add verb = "GET, HEAD" path = "ScriptResource. axd "type =" System. web. handlers. scriptResourceHandler, System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "validate =" false "/>

In the httpModules section under system. web, add:

<Add name = "ScriptModule" type = "System. Web. Handlers. ScriptModule, System. Web. Extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35"/>
[This section can be left blank, so you need to manually add the scriptmanager control in the program. If this section is added, we can use DotNetNuke. Framework. AJAX to operate it.]

3. Introduce ScriptManager and UpdatePanel on the page to start the ajax journey

 

Example from the book:

ASPAjax.zip

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.