AJAX :: How To Use CDN For MicrosoftAjax.js With .NET 4 & Control Toolkit 40412
Nov 5, 2010
Looks like there aren't a lot of users using the Ajax Control Toolkit 40412 and the Microsoft Microsoft Ajax CDN because I can't find any information on how to get the MicrosoftAjax.js and MicrosoftAjaxWebForms.js files to be linked to the CDN.
First issue:Ajax Control Toolkit 40412 seems to be using its own customized version of MicrosoftAjax.js and MicrosoftAjaxWebForms.js. Toolkit's version
is 4.1.40412.2, while the version that come with ASP.NET Ajax 4 is 4.0.30205.0. By default when using the toolkit the version is swapped to the toolkit's version. While the ASP.NET Ajax 4 version is hosted on the CDN (http://www.asp.net/ajaxlibrary/CDNAjax4.ashx)
the version with the Toolkit is not (http://www.asp.net/ajaxlibrary/CDNACT40412.ashx), which doesn't make any sense because all the other files are hosted. Therefore, a CDN version of MicrosoftAjax.js and MicrosoftAjaxWebForms.js is UNAVAILABLE when using the Ajax Control Toolkit 40412.
Second Issue:Why not use the ASP.NET Ajax 4 version of the the MicrosoftAjax.js, after all its version 4. The version can be swapped out by adding a Script Resource Mapping to the Application_Start event in the Global.asax.cs.
void Application_Start(object sender, EventArgs e)
{
ScriptManager.ScriptResourceMapping.AddDefinition("MicrosoftAjax.js", new ScriptResourceDefinition
{
Path = "~/Scripts/MicrosoftAjax.js", [code]....
However, when the version is changed to the ASP.NET Ajax 4 version the following error is given:
"AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll."
It doesn't matter if you are using the ToolkitScriptManager or ScriptManager you will always get this error when not using the version of
MicrosoftAjax.js that comes with the AjaxControlToolkit.So how can one use the Microsoft Ajax CDN for the MicrosoftAjax.js and MicrosoftAjaxWebForms.js with ASP.NET Ajax 4 & Ajax Control Toolkit 40412?
One other note. The new attribute EnableCdn="true" is of course rendered completely useless when using the Ajax Control Toolkit because the idea is that the MicrosoftAjax.js and MicrosoftAjaxWebForms.js files would then be linked by references to the CDN. This does not happen with the Toolkit because as described the Toolkit replaces the those files with its own. I was very surprised to find out that all my excitement about having CDN support was made void when I included the Toolkit in my project.
View 6 Replies
Similar Messages:
Aug 6, 2010
Im having problem with the newest release of Ajax Control Toolkit under .NET 3.5
I downloaded source code from AjaxControlToolkit.Source.zip and compiled it under .NET 3.5
Then i made simple web application:
[Code]....
It failed to run with my compiled version of ACT, im having an error:"Line: 160 Error: '$common' is null or not an object"
in AsyncFileUpload.AsyncFileUpload.debug.js and then:
"Line: 22 Error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll." in
AsyncFileUpload.AsyncFileUpload.debug.js" in Common.Common.debug.js
I tried to use precompiled binaries of ACT : AjaxControlToolkit.Binary.NET35.zip and its working!
There is difference in referenced scripts between my dll and AjaxControlToolkit.Binary.NET35.zip
In my version, the headers of MicrosoftAjax.debug.js and MicrosoftAjaxWebForms.debug.js are:
// Name: MicrosoftAjax.debug.js
// Assembly: System.Web.Extensions
// Version: 3.5.0.0
// FileVersion: 3.5.30729.4926
//-----------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------
// MicrosoftAjax.js
// Microsoft AJAX Framework.
// Name: MicrosoftAjaxWebForms.debug.js
// Assembly: System.Web.Extensions
// Version: 3.5.0.0
// FileVersion: 3.5.30729.4926
//-----------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------
// MicrosoftAjaxWebForms.js
// Microsoft AJAX ASP.NET WebForms Framework.
And when im using version from AjaxControlToolkit.Binary.NET35.zip, they are:
// Name: MicrosoftAjax.debug.js
// Assembly: AjaxControlToolkit
// Version: 3.5.40412.0
// FileVersion: 3.5.40412.2
// (c) 2010 CodePlex Foundation
// Name: MicrosoftAjaxWebForms.debug.js
// Assembly: AjaxControlToolkit
// Version: 3.5.40412.0
// FileVersion: 3.5.40412.2
// (c) 2010 CodePlex Foundation
I have not compared the rest of scripts, but in those 2 scripts: assembly, version and author does not match between my and precompiled dll. ToolkitScriptManager is trying to load microsoft scripts, but it should load those from CodePlex.In solution downloaded from AjaxControlToolkit.Source.zip, there are 2 projects: MicrosoftAjax and MicrosoftAjax.Extened, i think ToolkitScriptManager should take scripts from them. Maybe im compiling it in a wrong way? (I changed target framework in AjaxControlToolkit project to .NET 3.5 and also tried to change it in 2 projects mentioned above, with no effect).
View 5 Replies
Aug 9, 2010
I'm trying to use the Calendar control in a local intranet enviroment, so I need to put all the Javascript files locally, I've downloaded the Ajax Control Toolkit 40412 source code and extracted the Scripts from
"..AjaxControlToolkit_9c860ac12ae9SampleWebSitesAjaxClientWebSiteScripts",so I write the following code
[Code]....
View 3 Replies
Dec 8, 2010
I am Getting the following error using the Numeric UpDown Control from Ajax Control Toolkit.
Assembly 'AjaxControlToolkit, Version=3.0.30512.20315, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' contains a Web resource with name 'AjaxControlToolkit.NumericUpDown.NumericUpDownBehavior.debug.js', but does not contain an embedded resource with name 'AjaxControlToolkit.NumericUpDown.NumericUpDownBehavior.debug.js'.
View 2 Replies
Mar 9, 2010
I'm working with the MicrosoftAjax.js libraries to make my webservice calls via javascript, right now all my services are returning basic types, like string, int, bool. can i also have my services return things like DataSets, DataTables, or custom Classes that I have built to my javascript side?
View 3 Replies
Feb 15, 2011
We get this Warning in the Event Log from time to time. It seems to crasch our web so an iisreset is required.I have checked the version of AjaxControlToolkit that we use - and it is the version it says it needs. So what should I do?
Exception information:
Exception type: InvalidOperationException
Exception message: The requested script resource 'Common.Common.js' requires version 'AjaxControlToolkit, Version=4.1.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' of the ASP.NET AJAX Framework. To use this resource, make sure that the application references version 'AjaxControlToolkit, Version=4.1.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e'.
View 7 Replies
Jun 2, 2010
using 40412 in VS2010, I can't get reorderlist to work - can't pick any items up and move them around in any browser. sample site works fine, and I even tried referencing the dll from the bin directory there with no luck. tried running some code that binds data manually from a working project that uses a previous release and all I get is a regular list. converted data source to a sqldatasource and still no dice.
one oddity I do see between my non-working project and the other working examples (sample site and my older project) is that the generated list item div IDs are identical in my project, while the working examples all have unique IDs generated, ie:
non-working project: <li id="ReorderList1" style="vertical-align:middle;"> (all LIs identical)
working example (40412 sample site): ><li id="ctl00_SampleContent_ReorderList1__rli5" style="vertical-align:middle;"> (each line has unique suffix - in this case __rli5)
View 4 Replies
Nov 18, 2010
I'm developing on an existing software (PLM) with visual studio 2008, a new ascx page.
Microsoft .NET Framework use by the soft is : 2.0.50727.1433 and ASP.NET version use by the soft is : 2.0.50727.1433 too.
On my server, I've installed Framework 3.5 and I use Ajax Control tool kit version 3.5.40412.0.
I've got a similar problem than other people, but I can't find any solution.I've got the Error message when I want to load a page : CS1705: Assembly AjaxControlKit version 3.5.40412.0 [...] use System.Web.extensions Version 3.5.0.0 [...] which have a higher version than Assembly System.Web.Extensions Version 1.0.61025.0
On my server in folder C:windowsAssembly, I have System.Web.extensions Version 3.5.0.0 and System.Web.Extensions Version 1.0.61025.0 so in theory it can work no ?In my webconfig file I try to add this code :
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31BF3856AD364E35"/> [code]....]
View 2 Replies
Apr 26, 2010
When adding the latest ajax control toolkit.dll to my VS environment, it throws a "AjaxControlToolkit.dll is not a Microsoft .Net module.
View 4 Replies
Mar 29, 2010
The Ajax control toolkit tab panel automatically inserts a space by all four corners of the body. For example, go to http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Tabs/Tabs.aspx and look at the TabPanel on the page. The is a space before "Signature:" and "Bio:" labels. How can I set the space-width to 0px; in the tabPanel body?
View 1 Replies
Jul 29, 2010
When I click the button to open the modal popup it shows the popup but then continues and forces a postback causing the page to reload and the modal popup to be hidden again.Here is the markup for the control:
<asp:Button id="LoginOpenButton" runat="server" Text="Login"/>
<asp:Panel ID="ContentPanel" runat="server" CssClass="modalPopup">
<fieldset> [code]....
My script manager has no properties other than the id and runat set.
View 1 Replies
Nov 5, 2010
i have a page with some control like update panel and cascading dropdownlist. I have added some asp require validators but it does not working.
I have an asp image button with a postback url set. When i click on this button, the validations does not occurs and the application goes to the next page.
I am using the asp.net ajax validators too.
this is the event of the button:
[Code]....
this is the code of one of the DDL
[Code]....
[Code]....
View 2 Replies
Mar 27, 2011
When trying to use the editor control i'm getting the following error:
Value cannot be null or empty.
Parameter name: elementID
Here's my HTML:
[code]....
I'm using asp.net 4 with ajax control toolkit for version 4.
I believe the error is talking about the routing I have. Is there something special I have to do if I want to use the toolkit and custom routing?
View 1 Replies
Feb 22, 2013
how to work with multiple series! for example: with 2 series and display the name of each series in the graph! like this example: URL...
View 1 Replies
Nov 19, 2010
ajaxcontrol toolkit combobox control, a picture is worth than a lot of words so here is the picif you are not able to view then here is the link
http://flic.kr/p/8Uw29z
the problem is the items text in the combox box is having a square beneath at the second character which is hindering the visibility of the list. but the square is not appearing in the text area.
View 7 Replies
Apr 21, 2010
Adding an Accordion only creates the outer most tags. I then have to add the headercssclass, contentcssclass etc. info. Then i have to manually add <Pane> tags, and then add Accordion Pane controls. Using VWDE 2008, is there a way to customize the control so that adding the Accordion control automatically adds this other info? Ideally with 2 Accordion Panes to start, but even just getting the various Accordion properties and the <Pane> tags added would make it much more <Pane>less!
View 3 Replies
Sep 16, 2010
MSDN documentation says that the ScriptManager class is part of the System.Web.UI namespace and I see that I can create a ScriptManager object programmatically. However, I don't see the ScriptManager control on the front-end. Do I need to reference the Ajax Control Toolkit dll in order to have access to control?
View 6 Replies
Aug 30, 2010
Can you tell the difference between Rating and RatingExtender asp.net ajax Control ?
View 4 Replies
May 7, 2015
I have downloaded the ajax toolkit control i been using it for a couple of months now. But I cannot see Ajax toolkit pie chart control..
Why will I get it ? Do I have to download seperately?
View 1 Replies
Dec 1, 2010
i have used ajax control toolkit masked editor extender.i want to remove "_" from masking pattern and want to replace it with space. for ex. want " - - " instead of this
<
asp:MaskedEditExtender
ID="MEETxbPhone"
TargetControlID="txbPhone"
Mask="999-999-9999"
[code]...
View 2 Replies
Apr 6, 2010
How i can create collapsible textbox with jquery or ajax control toolkit.
View 1 Replies
Dec 3, 2010
I'm using AJAX Control Toolkit HTMLEditor.
I have a sample Microsoft Word document which has several paragraphs.
When I click the button "Paste from MS Word (with cleanup)" on the Editor, <br/> is inserted as the HTML instead of <p></p> i.e. HTML paragraphs.
I would like the MS Word paragraphs to retain their meaning and have a <p> instead of <br />.
(By the way, they are kept if I do a standard Paste, but then a lot of other obscure characters are inserted into the HTML)
View 2 Replies
Jun 30, 2010
Can I use the latest AJAX Control Toolkit on a .net 2.0 project which will be deployed to a server with framework 2.0 only? If not, where can I download the latest AJAX Control Toolkit for framework 2.0?
View 4 Replies
May 26, 2010
with build 30512 i was using client scripts including the .js this way:
<AjaxControlToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
<asp:ScriptReference Name="AjaxControlToolkit.Compat.Timer.Timer.js" Assembly="AjaxControlToolkit" />
<asp:ScriptReference Name="AjaxControlToolkit.Animation.Animations.js" Assembly=" AjaxControlToolkit" />
</Scripts>
</AjaxControlToolkit:ToolkitScriptManager>
now i receive this error (sorry, it is in italian) :
L'assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' non contiene una risorsa Web con nome 'AjaxControlToolkit.Common.Common.js'. Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere l'analisi dello stack. Dettagli eccezione: System.InvalidOperationException: L'assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' non contiene una risorsa Web con nome 'AjaxControlToolkit.Common.Common.js'.
I am currently using some $common functions, like getContentSize() and so on.
Looking at the source code it seems to me that all the paths have been changed, but i cannot understand the right namespace to use with the latest release.
View 8 Replies
Jul 22, 2010
At present we are using <ajax:TabContainer> to load tabs. I have 5 user controls inside <ajax:TabPanel>.
The problem is that all the data on these 5 pages gets loaded at once and increases the loading time as well as it is very hard to debug. Can we do lazy loading uisng TabContainer control? so that only the data of the current tab is loaded and when we click on the other tab then that's control data gets loaded.
View 7 Replies