1 Overview Ajax Control Toolkit is an ASP developed by the community and Microsoft.. Net Ajax extension control package, which contains dozens of ASP-based. net Ajax, server control that provides a specific function. Built on ASP. NET 2.0 Ajax extensions, it aims to become the largest and best set of available web applications.
Toolkit solves three requirements. First, enable website developers to obtain components to build their Web applications more easily; second, it provides a powerful sample set for those who want to write client code; and third, it is a place where the best script developers can highlight their work.
The latest download of Ajax Control Toolkit composed of Ajax Control Toolkit can be obtained from its development site (http://www.codeplex.com/AtlasControlToolkit/), there are four types of download on the site, respectively. net Framework 2.0 and 3.5, as well as download with and without source code.
The directory structure of Ajax Control Toolkit is as follows. The directory structure of. NET Framework 2.0 compressed packages with source code is described here:
- Ajaxcontroltooki: This directory contains all the source code in the Ajax Control Toolkit and the corresponding Visual Studio project files. You can view the source code to learn how to compile custom ASP. NET Ajax controls, perform secondary development based on these controls, or improve these controls.
- Binaries: Auxiliary. Net assembly for other projects in the solution.
- Samplewebsite: Sample Site of Ajax Control Toolkit, also known as its document site, which demonstrates the use of each control and its description of relevant attributes and methods.
- Toolkittests: This directory contains a Web site that provides a test framework that can be used to automatically test existing controls in toolkit.
- Ajaxcontrolentender: the directory contains an ajaxcontrolextender. after you run the Visual Studio Installation File of VSI and complete the installation, an "ASP. net Ajax control "type new project, used to develop your own ASP. net Ajax control.
- Templatevsi: There is a visual Studio project in the directory to create the installation file for the custom control.
3. Construct a Development Environment
3.1 install binary files
- Download and install the latest ASP. NET Ajax Extensions 1.0 package;
- Download the Ajax Control Toolkit package and decompress it to a folder on your computer.
3.2 configure Visual Studio 2005 and Visual Web Developer
- Create a website named "ASP. NET Ajax-enabled web site.
- On the toolkit, right-click "add tab..." to add a tab named "ajax Control Toolkit.
- On the Add tab, right-click and select "add item ...".
- In the displayed "option toolkit items" dialog box, click the Browse button, navigate to the samplewebsite "bin directory under the directory decompressed by Ajax Control Toolkit, and select" ajaxcontroltoolkit. DLL, click OK to close the select toolbox items dialog box.
- In this case, all the controls in the Ajax Control Toolkit are displayed on the Toolkit panel.
3.3 configure web. config
When you drag the Ajax Control Toolkit control from the toolbox to the page, Visual Studio automatically registers a prefix of for the Assembly on each page, which is very troublesome, the solution is in the web. register a meaningful prefix for it in config. Add the following configuration in Web. config to register the prefix "ajaxtoolkit": <system. Web>
<Pages>
<Controls>
<Add tagprefix = "ajaxtoolkit" namespace = "ajaxcontroltoolkit"
Assembly = "ajaxcontroltoolkit"/>
</Controls>
</Pages>
</System. Web>
4. Summary
Ajax Control Toolkit is a powerful set of extended controls, which greatly facilitates developers to develop various web applications with Ajax features.