What is the solution for "The Type or namespace 'AjaxControlToolkit' could not be found..."?

asp.net, c#, database, javascript, textbox

Solution

Way to reference a `dll` is:

- In Solution Explorer, select the project.

- On the Project menu, click Add Reference. The Add Reference dialog box opens.

- Select the tab indicating the type of component you want to reference. (If you don't find your .dll in the list, then go to the browse tab and find it in your directory)

An article on MSDN to include installed libraries.

And there is another way to do it, too.

Problem

``` Error 3 The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace (are you missing an assembly reference?) D:\My App\table\PopUpdata.aspx.designer.cs 58 27 table. ``` I have Declared this javascript but what is the problem. ``` <%@ Page Title="Show Data From Menu" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PopUpdata.aspx.cs" Inherits="table.PopUpdata" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> ```

Original source