Solved

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

Posted on 2014-01-09
5
636 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
Comment Utility
Not all XML elements are recognized in the file, so you can ignore that error, and move on.
0
 

Author Comment

by:webski
Comment Utility
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
Comment Utility
If you are asking if the bundling configuration looks correct, then I believe that it is correct.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to count occurrences of each item in an array.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now