How to use the ajax toolkit in asp.net? - asp.net

Hi I have installed the AJAX Toolkit by following this but I don't know how to use the controls of AJAX in ASP.Net. I tried this tutorial but this gave me some errors.

Download from here the latest version of ajax toolkit
http://ajaxcontroltoolkit.codeplex.com/
Inside this zip, you find one more zip file called "AjaxControlToolkitSampleSite.zip", uncompress it and you find all possible examples with source code fully running.

Related

nuget bootstrao and jquery package loading

i am loading the bootstrap and jquery packages from nuget:
but i get an error message in chrome console saying that
$ sign is not defined
do i need to referense the jquery lib file, from the aspx page?
if do so, what happen when jquery gets updated, his file name will update too?
In short, yes. You will need to reference the jquery file in every page you use it in. Alternatively, if you are using a _Layout page, you only need to do so once. In terms of the updating issue, your jquery file should not update automatically so you should be fine.
You could also make sure you have jquery migrate installed so that you never have deprecated or code breaking errors in your program. jQuery Migrate
Also consider using jQuery CDN rather than having the files stored locally as this can make updating and upgrading far easier

Asp.net Ajax File Upload Cannot deserialize. The data does not correspond to valid JSON

I have a Ajax File Upload Control on a user control. I have added the user control to the web page.
According to this article https://ajaxcontroltoolkit.codeplex.com/workitem/27149
I tried the following steps
a) download the ajaxcontrolkit from the site and replaced references
I could not find the AjaxFileUpload.pre.js file to make the changes suggested on the link
b) Downloaded the latest source but can't find the ajaxfileupload.pre.js file in it.
You need to download source code of AjaxControlToolKit from link and you can open the solution in visual studio and find the file. And you can Build the solution and get the latest DLL from this solution's bin folder as well.
that link says the problem was fixed in the september 2012 release. can you update?
i think i'm using the december 2013 version and haven't had a problem iirc.
there's also another fix on your link (https://ajaxcontroltoolkit.codeplex.com/workitem/27149) at the very bottom of the page. i suppose it depends on how you use the query string.

Latest version of Ajax Control toolkit loading 150 .axd files

I have installed the latest version of Ajax Control Toolkit, it is loading 150 ScriptResource.axd files approx. which is taking long time to load which in turn is making my website very slow, please suggest how to overcome this issue?
The latest version of Ajax Control toolkit is loading all the scripts by default, you have to code manually so that you can load only the required scripts for the used controls on the page. For Achieving this functionality, you have to create AjaxControlToolkit.config to define the bundles which in turn can be used by the individual pages. Please follow the below links it explains all the functionality that is required by you:
http://stephenwalther.com/archive/2013/07/25/july-2013-release-of-the-ajax-control-toolkit
https://ajaxcontroltoolkit.codeplex.com/SourceControl/latest#SampleWebSites/AjaxControlToolkitSampleSite/AjaxControlToolkit.config

ScriptManager and ToolkitScriptManager confusion

i am flowwing a tutorial the problem is that When i copy and paste the code.Calendar extender not firing .So i removed script manager and add toolkit scriptmanager and it works .I am wondering what could be the reason .in case of facing the same problem again
If I understand you correctly, the Calendar Extender you are currently using is the one provided by AjaxControlToolkit. If this is the case, then the ToolkitScriptManager is what is going to be needed as it is the AjaxControlToolkit version of the ScriptManager and is necessary for you to use all AjaxControlToolkit extensions such as Calendar extender, filtertextbox extender and so on. I hope this helps!
EDIT: As far as I know, ToolScriptManager can handle newer or updated Ajax scripts. This is why when you install AjaxControlToolkit, there are many more extenders than before you installed it. ScriptManager is meant to run Ajax scripts, but it is unable to handle the newer versions of Ajax such as the Calendar Extender, Watermark Extender, and so on properly. If you are using any AjaxControlToolkit extensions, then it is important to use ToolScriptManager has it will handle all the js scripts properly.

How do I find the my version Number of MS ASP.NET AJAX Control Toolkit?

I know I am not running the most up-to-date version of ACT on my server. (I tried to update it recently and it broke a bunch of things.)
So I want to use a control that I have never used before and I need to look at the reference for the control to be sure I'm using it correctly. But I dont know the exact version I am running.
Where can I find this information?
Right click on the AjaxControlToolkit.dll file and view the properties. The version number there will tell you what version you are using.

Resources