Link to home
Start Free TrialLog in
Avatar of webski
webski

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of webski
webski

ASKER

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