AJAX Control Toolkit Loading All Scripts

随声附和 提交于 2019-12-06 00:57:52

In current version of ACT you can group extenders in bundle and specify which bundles you need to include. Add AjaxControlToolkit.config file to project like here Codeplex AjaxControlToolkit.config, add new controlBundle entry to this file for CalendarExtender like this:

<controlBundle name="Calendar">
  <control name="CalendarExtender"></control>
</controlBundle>

and specify this bundle in ToolkitScriptmanager control:

 <ajaxToolkit:ToolkitScriptManager runat="server" CombineScripts="true" 
      ScriptMode="Release" >
      <ControlBundles>
           <ajaxToolkit:ControlBundle Name="Calendar" />
      </ControlBundles>
 </ajaxToolkit:ToolkitScriptManager>

Use ControlBundles to solve this, follow this step about ControlBundles on how to do it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!