TAILIEUCHUNG - ASP.NET 4 Unleased - p 177

Sử dụng điều khiển AJAX Toolkit Các AJAX Control Toolkit trên chưa bao gồm với 4 Framework. Các bộ công cụ được cập nhật liên tục, một phiên bản mới của bộ công cụ có sẵn mỗi tháng vợ chồng. Các bộ công cụ được duy trì như là một dự án tại Microsoft CodePlex. Bạn có thể tải về phiên bản mới nhất của AJAX Control Toolkit tại . | 1734 CHAPTER 39 Using the AJAX Control Toolkit Using the AJAX Control Toolkit The AJAX Control Toolkit is not included with 4 Framework. The Toolkit is continuously updated a new release of the Toolkit is available every couple months. The Toolkit is maintained as a project at Microsoft CodePlex. You can download the latest release of the AJAX Control Toolkit at http . The download link will give you the version of the toolkit which won t work with our 4 websites. To get the toolkit that s compatible with .NET 4 click the other downloads link. When you download the Toolkit you have the choice of either 1 downloading the controls and the source code or 2 downloading the controls only. You need to unzip the download onto your hard drive. As part of the download you get a sample website that demonstrates each of the Toolkit controls. You can open the sample website by launching Visual Web Developer selecting File Open Website and browsing to the SampleWebSite folder in the unzipped download. The AJAX Control Toolkit is not installed in the Global Assembly Cache. You must copy the assembly from the Bin folder of the SampleWebSite to the Bin folder in your application. You can do this in multiple ways Copy the assembly by hand You can simply copy the assembly from the SampleWebSite Bin folder to a Bin folder located in a new website. Add an assembly reference Follow these steps 1. Within Visual Web Developer select Website Add Reference. 2. Select the Browse tab. 3. Browse to the assembly located in the SampleWebSite Bin folder. Add the Toolkit to your Toolbox see Figure You can add the AJAX Control Toolkit to the Visual Web Developer Toolbox by following these steps 1. Within Visual Web Developer create a new page. 2. Right-click in the Toolbox window and select Add Tab. Create a new tab .