Vs05 does not require installation of packages when using the MS Ajax framework

Source: Internet
Author: User

When we use the MS Ajax framework, vs05 has an Ajax extension package and 08 is integrated in it, if the extension package is not installed, it cannot be released when Ajax applications are developed and released using the MS Ajax framework in 05. Here I will introduce you to the following method: do not install the extension package, but use the Ajax framework as a component.

Step 1:

In the extension package, find system. Web. Extensions. dll and ajaxcontroltoolkit. dll. These two DLL files.

Step 2:

Add the DLL file in the vs toolbox. Right-click the toolbox and select "select items". The "select toolbox items" window appears, as shown in:

 

Select the. NET Framework component and Click Browse to add the two files in step 1.

Step 3:

Drag the Ajax control in the toolbox to the webpage directly.

Step 4:

Add the following to the configuration file <system. Web> </system. Web>:

<Httphandlers>
<Remove verb = "*" Path = "*. asmx"/>
<Add verb = "*" Path = "*. asmx "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>
<Add verb = "*" Path = "* _ appservice. axd "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>
<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 "/>
</Httphandlers>
<Httpmodules>
<Add name = "scriptmodule" type = "system. Web. Handlers. scriptmodule, system. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35"/>
</Httpmodules>

 

It is best to add: 1. When using the Ajax framework to develop applications, the registration script in the background CS file should be replaced

Scriptmanager. registerstartupscript (this. updatepanel1, this. GetType (), "updatescript", "alert ('deleted successfully! ') ", True );

2. If you do not want to add components to the toolbox in step 2, you can also add the DLL file to the bin folder, register the control in the page, and then use the control.

Related Article

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.