Configure Asp.net Ajax Control Toolkit

Source: Internet
Author: User

1> install Ajax ASPAJAXExtSetup. msi (download from http://ajax.asp.net)
2> install the Ajax template ASPAJAXSamples. msi
3> download the latest ajaxcontroltoolkit.
Http://www.codeplex.com/Release/ProjectReleases.aspx? ProjectName = AtlasControlToolkit
4> decompress the package to C: \ Program Files \ Microsoft ASP. NET \ ASP. NET 2.0 AJAX Extensions \ AjaxControlToolkit
5> open solution \ AjaxControlToolkit. sln to generate the TemplateVSI project.
6> copy
\ AjaxControlToolkit \ SampleWebSite \ Bin \ AjaxControlToolkit. dll
\ AjaxControlToolkit \ SampleWebSite \ Bin \ AjaxControlToolkit. dll
To \ AjaxControlToolkit \ Binaries \
7> Run \ AjaxControlToolkit \ TemplateVSI \ bin \ AjaxControlExtender. vsi Installation Template (select C #), only Web
8> right-click the Toolkit and choose add AJAX Toolkit from the shortcut menu. On the AJAX Toolkit tab, right-click an item and choose. NET Framework from the displayed dialog box.
Click Browse C: \ Program Files \ Microsoft ASP. NET \ ASP. NET 2.0 AJAX Extensions \ AjaxControlToolkit \ Binaries \ AjaxControlToolkit. dll

 

Configure the web. config component

Web. config is an XML document. Its root element is <configuration> <! -- Configure asp.net ajax webconfig ___ 1 --> <! -- This node must appear as the first <configuration> node --> <configSections> <sectionGroup name = "system. web. extensions "type =" System. web. configuration. systemWebExtensionsSectionGroup, System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "> <sectionGroup name =" scripting "type =" System. web. configuration. scriptingSectionGroup, System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "> <! -- If you want ASP.. net ajax applications can compress or cache client script files during runtime, define a new <section> as shown below in <sectionGroup name = "scripting> --> <section name =" scriptResourceHandler "type =" System. web. configuration. scriptingScriptResourceHandlerSection, System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "requirePermission =" false "allowDefinition =" MachineToApplication "/> <sectionGroup name =" webService S "type =" System. web. configuration. scriptingWebServicesSectionGroup, System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "> <section name =" jsonSerialization "type =" System. web. configuration. scriptingJsonSerializationSection, System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "requirePermission =" false "allowDefinition =" Everywhere "/> <section name =" profileService "type =" System. web. configuration. scriptingProfileServiceSection, System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = token "requirePermission =" false "allowDefinition =" MachineToApplication "/> <section name =" authenticationService "type =" System. web. configuration. scriptingAuthenticationServiceSection, System. web. extensions, Version = 1.0.61025.0, Culture = neutral, publicKeyToken = 31bf3856ad364e35 "requirePermission =" false "allowDefinition =" MachineToApplication "/> </sectionGroup> </configSections> <! -- Configure asp.net ajax webconfig ___ 2 --> <! -This node appears as a sub-node of <configuration> --> <system. web. extensions> <scripting> <webServices> </webServices> <! -- The following statement compresses the size of the client script library when the program runs in Release mode. If not, we should definitely add this HTTP module to improve network transmission speed --> <scriptResourceHandler enableCompression = "true" enableCaching = "true"/> </scripting> </system. web. extensions> <! -- Configure asp.net ajax webconfig ___ 3 --> <! -- In the <configuration> root element, <system. register ASP. net ajax server-side control prefix --> <pages> <controls> <add tagPrefix = "asp" namespace = "System. web. UI "assembly =" System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "/> <add tagPrefix =" asp "namespace =" Microsoft. web. preview. UI "assembly =" Microsoft. web. preview "/> <add tagPrefix =" asp "namespace =" Microsoft. web. preview. UI. controls "assembly = "Microsoft. web. preview "/> </controls> </pages> <compilation debug =" true "> <assemblies> <add assembly =" System. web. extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31BF3856AD364E35 "/> <add assembly =" System. design, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = B03F5F7F11D50A3A "/> <add assembly =" System. web. extensions. design, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken = 31BF38 56AD364E35 "/> </assemblies> <! -- Configure asp.net ajax webconfig ___ 4 --> <! -- Modify the <compilation> section to allow debugging and add necessary assembly for debugging --> <! -- The above Code also contains the <buildProviders> and the declaration of the *. asbx file. If the application does not require a remote Web Service bridge on the server side, you do not need to add this part of content in <buildProviders> --> <! -- The following section is newly added --> <buildProviders> <add extension = "*. asbx "type =" Microsoft. web. preview. services. bridgeBuildProvider "/> </buildProviders> </compilation> <! -- Configure asp.net ajax webconfig ___ 5 --> Add or modify the

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.