ASP. NET Ajax Control Toolkit (1): Ajax Control Toolkit introduction and development environment construction

Source: Internet
Author: User
1 Overview Ajax Control Toolkit is composed Community And Microsoft
An ASP. NET Ajax extension control package, which is jointly developed, contains dozens of server controls that are based on ASP. NET Ajax and provide a specific function. 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 all of the Ajax Control ToolkitSource codeAnd the corresponding Visual Studio
      Project file. 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. VSI Visual Studio Installation File.
      A new project of the ASP. Net Ajax control type will be added to the Visual Studio Project template 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. right-click the added tab 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 in
When you drag the Ajax Control Toolkit control from the toolbox to the page, Visual Studio automatically registers a prefix for the Assembly on each page.
This is very troublesome. The solution is to register a meaningful prefix for it in Web. config. In web. config
Add the following configuration 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. :-)

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.