How to add ajaxcontroltoolkit to toolbox in Visual Studio 2012

旧巷老猫 提交于 2020-01-19 09:45:52

问题


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?


回答1:


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).

Right click on it and select: Choose Items..

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

Select AjaxControlToolKit.




回答2:


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.



回答3:


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:


The current version of the AJAX Control Toolkit does everything to install itself into the VS toolbox. First exit out of VS (it will tell you to exit if you don't) then click the Download button in AJAX Control Toolkit.




回答5:


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..



来源:https://stackoverflow.com/questions/15258994/how-to-add-ajaxcontroltoolkit-to-toolbox-in-visual-studio-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!