Ajax Control Toolkit introduction and build development environment

Source: Internet
Author: User

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

  1. Download and install the latest ASP. NET Ajax Extensions 1.0 package;
  2. 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

  1. Create a website named "ASP. NET Ajax-enabled web site.
  2. On the toolkit, right-click "add tab..." to add a tab named "ajax Control Toolkit.
  3. On the Add tab, right-click and select "add item ...".
  4. 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.
  5. 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.

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.