Solved

Getting an error when adding elements in AjaxControlToolkit.config file to ASP.NET project

Posted on 2014-01-09
5
646 Views
Last Modified: 2014-01-22
I am trying to add a file - AjaxControlToolkit.config to the root of the application in ASP.NET and when i type in the first tag <ajaxControlToolkit> it gives me an error saying the element is not declared.  I tried to build and rebuild the project but no luck. Do i need to declare something in the web.config. i added CombineScriptsHandler.axd in the web.config.
All the ajax controls work as expected when i run the project but i wanted to speed it up a bit by creating the ajaxControlToolkit.config file but i can`t.
Am i missing something?

Thanks for your reply
0
Comment
Question by:webski
  • 2
5 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 39794012
Not all XML elements are recognized in the file, so you can ignore that error, and move on.
0
 

Author Comment

by:webski
ID: 39796334
I did a tracing on the project and when i run the first time it gives me the same time loading all events as before i include the AjaxControlToolkit.config file hence not sure if it`s effective.

All i have in that config file is

<ajaxControlToolkit>
  <controlBundles>
    <controlBundle name="ajaxTools">
      <control name="Accordion"></control>
      <control name="AlwaysVisibleControlExtender"></control>
      <control name="ModalPopupExtender"></control>
    </controlBundle>
  </controlBundles>
</ajaxControlToolkit>

and then assigning the control bundle in the toolscriptmanager as:

<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" EnableCdn="true" EnablePartialRendering="false" runat="server">
            <ControlBundles>
                <ajaxToolkit:ControlBundle Name="ajaxTools" />
            </ControlBundles>
        </ajaxToolkit:ToolkitScriptManager>


Is this correct?     ...Thanks for your reply ...
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39797359
If you are asking if the bundling configuration looks correct, then I believe that it is correct.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question