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?
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="AlwaysVisibleControl
<control name="ModalPopupExtender">
</controlBundle>
</controlBundles>
</ajaxControlToolkit>
and then assigning the control bundle in the toolscriptmanager as:
<ajaxToolkit:ToolkitScript
<ControlBundles>
<ajaxToolkit:ControlBundle
</ControlBundles>
</ajaxToolkit:ToolkitScrip
Is this correct? ...Thanks for your reply ...