When I open a 3.5 related web project then the Ajax extension is showing; e.g.: script manager, update panel etc
However when I open a 2.0 web project then Ajax extension is not showing.
Please guide me on what to do if I want Ajax extension to be available in case of 2.0 related project.
Do I need to download an installer? If so then please tell me URL from where I can download Ajax extension for 2.0.
you need to get the ajax extensions for .NET 2.0
Download
Related
I have created a website using Visual Studio 2012. It is working just fine. The problem is I have to deploy it on a server that has .Net Framework 2.0 only. So I created another website using Visual Studio 2012 and set its version to 2.0. After copying the code of just a single page I tried to run it. But I am getting the errors "Unknown server tag asp:ScriptManager" and "Unknown server tag asp:UpdatePanel". I need them both as I have to use PageMethods in my page. How can I create a .Net Framework 2.0 website with ScriptManager and UpdatePanel without any error? Thanks in advance.
You didn't have to recreate your project. Go to the project settings, application, then change the "Target Framework".
To clearly answer your question, the answer is : you can't.
As Jamie Keeling suggested, Script Manager and Update Panel came with .Net Framework version 3.5.
You will have to find other components or some kind of workaround.
You might have to install ASP.NET 2.0 AJAX Extensions 1.0 if you are planning to use scriptmanager and update panel in .NET 2.0. Prior to .NET 3.5, Ajax was available as a separate library.
I'm working on ASP.NET "Framework 2.0" and I'm not able to use ScriptManager control.
What should I do to be able to use ScriptManager and other AJAX extensions without updating to newer framework?
You should install ASP.NET Ajax and you will able to do things, you are used to.
You won't find the 2.0 version on the asp.net website anymore.
For the 2.0 version they have archived this.
You will need the archived version found here
The working link is: https://www.microsoft.com/en-us/download/details.aspx?id=883
ASP.NET AJAX 1.0
ASP.NET AJAX is a set of technologies to add AJAX (Asynchronous JavaScript And XML) support to ASP.NET. It consists of a client-side script framework, server controls, and more.
I need some help on ajax control toolkit in asp.net Visual Studio 2010 .net frame work
version 4.
We have hosted on interland server and it does not support ajax control toolkit .DLL as it is a third party dll.
Could anybody give us an workaround on this, can we download the source code for this toolkit which is in javascript and can we include this .js files in our aspx pages so we can have ajax control toolkit for our website.
Any examples would be helpful if we can try this workaround working.
thanks
Just copy the DLL to your Bin folder.
If you're deploying an ASP.net app, and your project has a reference to the relevant assembly, the dll should be copied to your .\bin folder as part of the publish process, just like the compiled assemblies that comprise your app.
I have one ASP.NET web application projrct, created in Visual Studio 2008, .NET 3.5 Framework, IIS 6.1 and I'm using Ajax updatepanel, cache options for caching the datatable in a gridview. This project is working good in local, but when I deployed in a cert environment (.NET Framework 2.0 and IIS 6.0) I faced that caching issue.
So that, now I'm trying to change the project from 3.5 to 2.0 framework. But I'm facing an Ajax update panel error.
How can this problem be fixed?
You mean the target framework? You can right click the application name and then click on Property Pages, in that go to Build and then choose the target framework to 2.0.
Also, have a look at this:
http://msdn2.microsoft.com/en-us/library/bb398791(VS.90).aspx
reference : http://forums.asp.net/t/1194067.aspx
It will not be very straight forward though. As there may be some language features that are only available in 3.5.
The ASP.NEt AJAX framework for ASP.NET 2.0 has a separate DLL you have to install manually from this link: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
You'll have to use an older version of the AJAX control toolkit too; the latest is only supported on 3.5 and 4.0.
HTH.
I have the .net framework 3.5 on my development machine and also am using the AJAX toolkit in my code. In order to publish this code to a server for my users, do I need anything on the server in order for my AJAX code to operate correctly?
You need only the .NET framework 3.5.
If you publish your project, the AJAX Toolkit used will be also copied over. If you only reference the AJAX Toolkit via file, not via project, then be sure you set the dll to "Copy always" in the properties window.
.NET 3.5 needs to be installed on the server. The Ajax Control Toolkit assembly does not need to be actually loaded on the server, but needs to be at least in the Bin Folder, with references in the web.config.
Of course, you will need to install the .NET Framework on your server. If you are using the AJAX Toolkit you will want to copy over the AjaxControlToolkit.dll to the bin folder of your web application on your server.
Also want to make sure that you set your web application to use .NET Framework 2.0. In IIS you go to the properties of your web site, then the ASP.NET tab and make sure ASP.NET version is set to 2.0.