ASP.NET - How to add reference in a website project

Asked By Daniel on 29-Jun-12 12:21 AM
Hi!I am adding an ajax extension and an ajaxcontrolToolkit  to my website in visual studio then I got this error:
Error 3 Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified. C:\DanWebApps\Pages\Home.aspx 3

Error 5 Unknown server tag 'asp:HoverMenuExtender'. C:\DanWebApps\Pages\VerticalDropDownList.aspx 20

How to add references in a website project?It seems like it is not like a web application...and please could you explain to me why there is no references in webite like in web application.
Asked By Daniel on 29-Jun-12 12:36 AM
Thanks James!It help me...
Jitendra Faye replied to Daniel on 29-Jun-12 12:42 AM

Follow this steps-

1.   Open Visual Studio Web Developer 2010 and create a new ASP.NET Web Form website or Project. Open the Default.aspx file in the visual Editor
2.   We’re going to create a new toolbox, by right clicking the toolbox tab and choosing Add Tab, Name that Tab Ajax control Toolkit.
3.   Right click beneath our newly created Tab and select the menu option Choose Items… once you see the Browse butting, browse to where we saved our extracted files earlier, I saved them in the Desktop section of my computer. Pick the ajaxcontroltoolkit.dll and click ok button to close the choose tool box items.
4.   It should take a few moments to load, once it has finished loading you will see you new Tab Named Ajax Control Tooklit
5. Now you can drag and drop these control same as other .Net controls.

Hope this will help you.
KCH replied to Daniel on 29-Jun-12 01:37 AM
i think you need to add AjaxControlToolkit.dll to Bin folder in your solution explorer.
Lalit M replied to Daniel on 29-Jun-12 04:40 AM
Using automation to add reference in website project