How to add ajaxcontroltoolkit to toolbox in Visual

2019-01-18 03:29发布

I have used the ajaxtoolkit with .NET 4 and Visual Studio 2010, and I was able to add a new tab to the toolbox and add the ajaxtoolkit controls to the toolbox. How do I do this in Visual Studio 2012?

I have added the ajaxtoolkit with NuGet, but I would like to see the controls in the toolbox, so I can drag the controls in. How is this done?

4条回答
ゆ 、 Hurt°
2楼-- · 2019-01-18 04:06

It's located in the packages folder created by Visual Studio 2012 after you use NuGet Package Manager to download it.

Create a tab in Visual Studio (you can name it Ajax Toolkit).

Enter image description here

Right click on it and select: Choose Items..

Enter image description here

Click Browse and navigate to the packages folder that Visual Studio 2012 creates with your source. Something like this: ..\packages\AjaxControlToolkit.7.0123\lib\40\AjaxControlToolkit.dll

Enter image description here

enter image description here

Select AjaxControlToolKit.

查看更多
神经病院院长
3楼-- · 2019-01-18 04:18

Slight sort cut for finding the dll folder, for example step 7 in the instruction set given by user3546149.

(Good job, I would up vote your answer but no reputation).

AjaxControlTookkit should show under References for the project. Right click it and select Properties. The Path property is the path to the AjaxControlToolkit.dll. Copy that Path property.Then for step 7 paste the Path property directly in the search box. Saves eye strain and clickity click oops syndrome.

(Works for VS 2013 also, maybe others).

查看更多
够拽才男人
4楼-- · 2019-01-18 04:18

To install Ajax Control Toolkit, run the following command in the Package Manager Console

PM> Install-Package AjaxControlToolkit

this is install the Ajaxtoolkit in your current project..

查看更多
爷、活的狠高调
5楼-- · 2019-01-18 04:19

I just installed it in Visual Studio 2013. Here's a summary of the process:

  1. Click on solution and Manage Nuget Packages
  2. Filter for AJAX and select the Ajax Control Toolkit
  3. After NuGet installs this, it won't be in the toolbox!
  4. Create a new toolbox group for AJAX CONTROL TOOLKIT
  5. Add Items
  6. Browse
  7. Navigate to the toolkit URL. Project is Webapplication1 in the c:\temp folder so the toolkit was in: C:\temp\WebApplication1\packages\AjaxControlToolkit.7.1213\lib\45 (because I am using framework 4.5)
  8. Click OK and the toolbox should be populated.
查看更多
登录 后发表回答