0

I've just added Ajax Control Toolkit with NuGet, and I want to add the following piechart:

       <ajaxToolkit:PieChart ID="pieChart1" runat="server" ChartHeight="300" 
            ChartWidth="450" ChartTitle="Widget Production in the world" 
            ChartTitleColor="#0E426C"> 
            <PieChartValues>
                <ajaxToolkit:PieChartValue Category="United States" Data="45" 
                PieChartValueColor="#6C1E83" PieChartValueStrokeColor="black" />
                <ajaxToolkit:PieChartValue Category="Europe" Data="25" 
                PieChartValueColor="#D08AD9" PieChartValueStrokeColor="black" />
                <ajaxToolkit:PieChartValue Category="Asia" Data="17" 
                PieChartValueColor="#6586A7" PieChartValueStrokeColor="black" />
                <ajaxToolkit:PieChartValue Category="Australia" Data="13" 
                PieChartValueColor="#0E426C" PieChartValueStrokeColor="black" />
            </PieChartValues>
        </ajaxToolkit:PieChart>

However, my page has no clue what PieChart is, how can I add ajaxToolkit and link it to the dll file in the aspx page?

2
  • possible duplicate of How to add namespace in aspx file? Commented Aug 6, 2013 at 7:27
  • @Castrohenge Im aware of <%@ Import Namespace="System.Net.Mail"%>, but where do I define ajaxToolkit? Commented Aug 6, 2013 at 7:36

2 Answers 2

1

Mine looks like this:

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

If you drop an ajax control onto the form, it should create the registration for you. Mine above is an auto generated reference to the ajax toolkit. You also have to add a reference to the Ajax dll through the project references (although Nuget might have done this already, not sure).

Sign up to request clarification or add additional context in comments.

Comments

0

I hope the following images will be useful. And download the needed AJAX .dll file.

Add this:

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

Step 1:

Step 1

Step 2:

Step 2

Step 3:

Step 3

Step 4:

Step 4

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.