locked
Adding AjaxControlToolkit.config file to ASP.NET project RRS feed

  • Question

  • User1928442140 posted

    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> in that config file, 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

    Wednesday, January 15, 2014 5:23 AM

Answers

  • User1734617369 posted

    Hi,

    The blue line is only Visual Studios way of saying that it can not find any source for the intellisence functionality, so the file may still be ok but you won't get any intellisence.

    Best regards
    Johan 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 16, 2014 8:00 AM

All replies

  • User-417640953 posted

    Hi pecko2006,

    Thank you post the issue to asp.net forum.

    According to your description, I see you want to define an AjaxControlToolkit.config file and define the control bundles

    for improve your web ability.

    <ajaxControlToolkit>
      <controlBundles>
        <controlBundle>
          <control name="CalendarExtender" />
          <control name="ComboBox" />
        </controlBundle>
        <controlBundle name="CalendarBundle">
          <control name="CalendarExtender"></control>
        </controlBundle>
      </controlBundles>
    </ajaxControlToolkit>
    

    For this issue, Stephen has writed an article for how to do it.

    http://stephenwalther.com/archive/2013/07/25/july-2013-release-of-the-ajax-control-toolkit

    You can also refer to below toturial and take more information.

    http://www.asp.net/AjaxLibrary/AjaxControlToolkitSampleSite/ToolkitScriptManager/ToolkitScriptManager.aspx

     

    Hope this helps, thanks.

    Best Regards!

    Thursday, January 16, 2014 3:03 AM
  • User1928442140 posted

    Hi Fuxiang

    Thanks for your reply.

    I followed Stephen instructions but when i type in the <ajaxControlToolkit> up the top, i get a blue squiggly line underneath saying "the tag element is not declared". The project builds successfully but the blue line is not going away, therefore  i am not sure if the ajaxControlToolkit.config file is effective or not.

    Cheers

    Thursday, January 16, 2014 7:20 AM
  • User1734617369 posted

    Hi,

    The blue line is only Visual Studios way of saying that it can not find any source for the intellisence functionality, so the file may still be ok but you won't get any intellisence.

    Best regards
    Johan 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 16, 2014 8:00 AM