Assembly 'AjaxControlToolkit' could not be loaded

Peter_1985 2,736 Reputation points
2023-08-22T09:35:02.11+00:00

Hi,

Can you help to the issue below?

圖片

Developer technologies | ASP.NET | Other
{count} votes

Accepted answer
  1. Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
    2023-08-23T07:57:33.78+00:00

    Hi @Peter_1985,

    You can use AjaxControlToolkit through nuget package.

    PM> NuGet\Install-Package AjaxControlToolkit -Version 20.1.0
    

    User's image

    After downloading the nuget package, you can use AjaxControlToolkit, the following is a simple code example.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebForm823.WebForm1" %>
    
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <cc1:ComboBox ID="cbCustomers" runat="server" AutoCompleteMode="SuggestAppend">
                </cc1:ComboBox>
            </div>
        </form>
    </body>
    </html>
    
    

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.