Using AjaxToolkit (AjaxFrameworkMode="Explicit") to limit unneccessary JS files

I had a previous post on Experts Exchange, asking more generally about optimising the output of the AjaxToolkit.  The solution offered was very helpful and pointed me to:
This walkthrough appears to cover compression and combination of JS files but does not appear to do anything related to excluding unneeded AJAX modules.

Specifically, I just want to have a page with one textbox, one button and an AJAX AutoComplete extender - but have a minimal download size to suit browsers with slow download speeds.  My current implemention works but has the downside of downloading BarChart / CascadingDropDown / ColorPicker, either as distinct JS files, or as one combined file with a similar overall filesize (about 200KB)

The AjaxFrameworkMode="Explicit" condition appeared to be what I wanted to limit which parts fo the AJAX library are downloaded to the client, but a few tests don't show it having any limiting factor.  Before using it, my client was downloading 82 scripts, after using it, still 82!

My current stage of experimentation is as below.  Analysing what my browser is downloading with Fiddler shows it is requesting all 82 JS files.

I'm using the .net 4.0 framework with the AjaxControlToolkit version
Any idea what I can do to force the page to ONLY download the parts of the toolkit that are needed?

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="skeleton_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>

<!DOCTYPE html>

<html xmlns="">
<head runat="server">
	<form id="form1" runat="server">
		<ajaxToolkit:ToolkitScriptManager ID="AjaxScriptmanager" AjaxFrameworkMode="Explicit" runat="server" CombineScripts="false" ScriptMode="Release" LoadScriptsBeforeUI="false" EnablePartialRendering="false">
				<asp:ScriptReference Name="MicrosoftAjax.js" />
				<asp:ScriptReference Name="AutoComplete.AutoCompleteBehavior.js" Assembly="AjaxControlToolkit, Version=, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />
			<asp:TextBox ID="SearchBox" runat="server" />
			<asp:Button ID="SearchButton" Text="Search" runat="server" />
			<act:AutoCompleteExtender ID="tbSearchAutocompleteExtender" runat="server" TargetControlID="SearchBox" ClientIDMode="Static"
				ServicePath="AutoComplete.asmx" ServiceMethod="GetCompletionList" MinimumPrefixLength="1"
				CompletionInterval="1" CompletionSetCount="10"

Open in new window

Who is Participating?
guru_samiConnect With a Mentor Commented:
Get the latest version of the toolkit. It introduced something called Control Bundles. Check this for more information:
BeamsonAuthor Commented:
Turns out that the version I'm using IS the latest version but what I needed was a pointer towards the Control Bundles area.  Unless you already know it exists, its not easy to find!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.