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.
Related
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
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
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.
I wanted to switch to the beta version to see if it fixes a problem I have been having, so I downloaded it and put two dll files into my bin folder. I deleted the old references to these files in visual studio, and re-added them.
When I run my program I get an error:
Microsoft JScript runtime 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 AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.
I can't figure out how to fix this. I have the new System.Web.Ajax.dll added to visual studio, but I can't see any AjaxScriptManager anywhere...
Any ideas?
Adding the following to the aspx file fixed this error for me:
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
I had very bad performance issues when trying to use ToolkitScriptManager from ASP.NET Ajax Library Beta 0911 library.
The problem was that PreRenderComplete stage took over 0.5s for a simple form.
When I switched to AjaxScriptManager (from System.Web.Ajax.dll found in the same Toolkit release), the same application started to work 10 times faster and PreRenderComplete stage now takes 7ms (up to 70 times faster!).
So I suggest using AjaxScriptManager instead of ToolkitScriptManager if that doesn't break any functionality of your application.
<ajax:ToolkitScriptManager ID="somename" runat="server" EnablePartialRendering="true" CombineScripts="false"></ajax:ToolkitScriptManager>
Use the above code to turnoff the combinescripts feature of ToolkitScriptManager and you wont get error.
Thanks, SK
I can get an UpdatePanel control working(partial postbacks) no problem with a new fresh .net 3.5 project. I've overcome many of the pitfalls that are answered here on this site. (scriptmanager on the page, using triggers, or placing the button within the panel itself.)
If I have try to use the UpdatePanel on a project that was originally a .net 1.1 project, upgraded to 2.0, now recently upgraded to 3.5, I can't get partial post backs for anything. At this point the code is exactly the same within the form. My relevant web.config parts are the same, and from what I can tell my .proj files too are the same.
Anyone have any ideas here?
Have you checked to make sure you aren't still caching the assemblies? I know the AJAX control toolkit required you to "copy local". Make sure you eliminate that as a possibility.
I've checked, and the copy local is set to false on all references. Any other check to see if caching is a problem?