Assembly 'AjaxControlToolkit' could not be loaded

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

Hi,

Can you help to the issue below?

圖片

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,312 questions
{count} votes

Accepted answer
  1. Lan Huang-MSFT 26,516 Reputation points Microsoft Vendor
    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