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" %>
Way to reference a
dll
is:An article on MSDN to include installed libraries.
an There is another way to do it.
You're missing an assembly reference. So you need to reference AjaxControlToolkit.dll in your project.
This is general issue of dll
for solving this you must have 3 dll in your Bin folder
1--AjaxControlToolkit.dll
2--AjaxControlToolkit.dll.refresh (Refresh file)
3--AjaxControlToolkit (Program Debug database)
Now just add the AjaxControlToolkit.dll refrence in your application.
To have the needed references for AjaxControlToolkit
Right Click project/solution > Manage NuGet Packages..>install Ajax control Toolkit.
This will add needed assemblies to your solution.
I have faced the same issue. I have deleted all the files from the bin folder and then added the files back to the folder. It worked successfully. Hope it resolves your issue.