ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Most of you who have worked with Visual Studio 2008 would love the fact that it supports multi-targetting i.e. targetting different versions of framework v2.0, v3.0 & v3.5.  To give a quick background, earlier versions of Visual Studio were tightly integrated with the framework to give maximum benefit.  See the chart below

.NET Framework 1.0      Visual Studio .NET 2002       

.NET Framework 1.1      Visual Studio .NET 2003

.NET Framework 2.0      Visual Studio 2005

.NET Framework 3.0      Visual Studio 2005 + Workflow Extensions, and VS 2005 Extensions for WPF & WCF

.NET Framework 3.5      Visual Studio 2008
.NET Framework 3.0 
.NET Framework 2.0

If you notice the above list, you find that there has been a respective tool for every version of the framework and none of them can be interchanged i.e. .NET Framework 2.0 doesnt work with Visual Studio .NET 2003 and Visual Studio .NET 2002 cannot be used to create applications targetting .NET Framework 1.1. 

But with .NET 3.0 we didnt have an equivalent Visual Studio edition.  Instead you just have to download the extensions (for free) and use Visual Studio 2005 for creating WPF, WCF, WF and WCS Applications.

Also, ASP.NET AJAX v1.0 was released as a separate add-on to work with ASP.NET 2.0 and Visual Studio 2005.

So when you open an application written using Visual Studio .NET 2003 and .NET Framework 1.1 in Visual Studio 2005 editor, it will give you the conversion wizard for upgrading to .NET Framework 2.0.  This was sort of annoying for certain people who wanted to retain the framework version but still work with the newer version of the tool. 

With Visual Studio 2008 we ensured that you can create / open applications targetting .NET Framework 3.5, 3.0 and 2.0.  The File - New - Project / Website wizard provides you the drop down to chose the framework version to target.  Based on the version of framework you chose, the relevant templates, references and toolbox get generated.

Coming to the original intent of the post, if you want to use Visual Studio 2008 and create an ASP.NET 2.0 Application you could do it out of the box as described earlier.  However, if you want to use ASP.NET 2.0 as well as the ASP.NET AJAX v1.0 Library there is no built-in "AJAX Enabled ASP.NET 2.0 Website" template to achieve this.

But we shipped "Microsoft ASP.NET 2.0 AJAX Templates for Visual Studio 2008" in mid December 2007 as an add-on that one can install on top of Visual Studio 2008.  Once installed, it gives you the option to create ASP.NET 2.0 AJAX Enabled Website using Visual Studio 2008.

You can downlod this add-on for free from here

This is only when you want to use ASP.NET AJAX v1.0 and ASP.NET 2.0 while working with Visual Studio 2008.  If you chose the framework target version as .NET 3.5, then a simple File - New - ASP.NET Website has built in AJAX Library and controls that can be used.

Well, its quite a lot of information and confusing as well.  So feel free to ask if you have a doubt.

Cheers !!!

posted @ Friday, January 11, 2008 12:13 AM

Print

Comments on this entry:

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Justin J. Moses at 1/13/2008 5:43 PM
Gravatar
Thank God - this really clears the air up with building different .NET versions.

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Shiyas at 2/18/2008 5:13 PM
Gravatar
can i install VS 2008 with out affecting VS2005. i want to use VS 2005 to my current project and VS 2008 for studying changes in framework 3.5

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Chris at 4/4/2008 4:04 AM
Gravatar
Hi,

I've got a web app that I biult in VS2005, which includes use of the ASP.Net AJAX 1.0 Libtaty. When I open the project in 2008 targeted against framework 2.0, I get a load of errors because there is a direct reference to the 1.0 Extensions in the web config, but the fact that there's an updatePanel, makes it reference the inbuilt 3.5 Extensions, despite the fact that the 1.0 AJAX controls are available in the toolbox. Any ideas you might have about how to fix this, would be gratefully received.

Thanks

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Rich at 7/9/2008 6:50 PM
Gravatar
Hi:

Can I run .NET 3.5 with SQL 2005?

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Zuri at 7/14/2008 7:53 PM
Gravatar
I want to use AJAX Extensions in .NET Framework 3.0 (VS 2008) is this possible? I tried different ways and still didn't work. I can't use ASP .NET 2.0 AJAX Extensions to achieve this right? If anyone have this experience before please share the knowledge. Thanks alot.

Zuri,
zurijackshot@gmail.com

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Thx at 8/10/2008 9:01 PM
Gravatar
Brilliant article, this is one of the best answers to a common question I have ever seen posted, so I just wanted to let you know it is appreciated.

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Satish Rao at 11/20/2008 8:31 PM
Gravatar
Very clear information. You saved me hours of research on this. Thanks a lot buddy.

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Mohit Jain at 4/9/2009 6:55 PM
Gravatar
Thanks a lot. Really useful and well compiled.

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by lingmurthy at 5/19/2009 3:43 PM
Gravatar
Can i download the Ajax controls in .net2003??

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Sravan at 6/12/2009 1:34 PM
Gravatar
I have an asp.net 1.1 app with no AJAX used. I successfully migrating this app to asp.net 3.5. But now i want to add ajax feature to this app and I cant see the default ajax controls list in tool box tab

could you help me

Chandra

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Sid at 8/6/2009 5:30 AM
Gravatar
Error 103 Could not load file or assembly 'AJAXASMXHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.This is the message i can find in my application when i run visual studio 2008

# re: ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Left by Sid at 8/6/2009 6:42 AM
Gravatar
Friends!!! Can anyone Help me out to get a solution?

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345