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.