Hello. I am having this line in each page that wishes to use ASP.NET AJAX. Is there any better alternative?
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
Ok. I decided to get latest. So now AjaxControlToolkit version is 3.0.30512.17815
So now asp:ScriptManager itself has <CompositeScript> section.
I also downloaded ScriptReferenceProfiler control from
http://weblogs.asp.net/bleroy/archive/2008/06/12/script-reference-profiler.aspx
This gives me at the end of the page JS files being used.
Now my issue again:
I have MasterPage, Content pages and sometimes UserControls inside them.
When I put my scripts inside CompositeScript section it throws error. Even if I include say AjaxControlToolkit.Common.Common.js along with my CompositeScript it shows up as a seperate reference in the script reference profiler.
"The resource URL cannot be longer than 1024 characters. If using a CompositeScriptReference, reduce the number of ScriptReferences it contains, or combine them into a single static file and set the Path property to the location of it."