Solved

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

Posted on 2014-01-09
5
663 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

734 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