1 Overview Ajax Control Toolkit is composed Community An ASP. NET Ajax extension control package developed jointly with Microsoft, which contains dozens of server controls that are based on ASP. NET Ajax and provide specific functions. Built on ASP. NET 2.0 Ajax extensions, aiming to become the largest and best available Web Application Program .
Toolkit solves three requirements. First, let website developers have a place to obtain components to build their Web applications more easily; second, it gives clients Code Third, it is a place where the best script developers make their work more prominent.
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 allSource codeAnd 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.
- right-click the added tab 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. when you drag the control of Ajax Control Toolkit 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. At the same time, building its development environment is also very simple. Microsoft is easy to use. :-)
from: http://www.cnblogs.com/doriandeng/archive/2007/11/05/949268.html