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 !!!

Print | posted on Friday, January 11, 2008 12:13 AM

Comments on this post

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

Requesting Gravatar...
Thank God - this really clears the air up with building different .NET versions.
Left by Justin J. Moses on Jan 13, 2008 5:43 PM

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

Requesting 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
Left by Shiyas on Feb 18, 2008 5:13 PM

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

Requesting 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
Left by Chris on Apr 04, 2008 4:04 AM

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

Requesting Gravatar...
Hi:

Can I run .NET 3.5 with SQL 2005?
Left by Rich on Jul 09, 2008 6:50 PM

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

Requesting 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
Left by Zuri on Jul 14, 2008 7:53 PM

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

Requesting 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.
Left by Thx on Aug 10, 2008 9:01 PM

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

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

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

Requesting Gravatar...
Thanks a lot. Really useful and well compiled.
Left by Mohit Jain on Apr 09, 2009 6:55 PM

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

Requesting Gravatar...
Can i download the Ajax controls in .net2003??
Left by lingmurthy on May 19, 2009 3:43 PM

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

Requesting 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
Left by Sravan on Jun 12, 2009 1:34 PM

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

Requesting 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
Left by Sid on Aug 06, 2009 5:30 AM

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

Requesting Gravatar...
Friends!!! Can anyone Help me out to get a solution?
Left by Sid on Aug 06, 2009 6:42 AM

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

Requesting Gravatar...
My scenario is the following:
- WIndows 7
- Visual Studio 2008
- ASP.Net 2.0 (for compilation reasons)

My application is bombing anytime I go into a page that attempts to register the AjaxcontrolToolkit since I'm using MaskedEditExtender controls. What AJAX version should I include in my app and how I install it?
Left by J.C. on Dec 03, 2009 8:19 AM

# Visual Studio C# 2008 Express Edition

Requesting Gravatar...
Can we build applications to target .NET 2.0 using VS2008 C# Express Edition.

Because when I go to File > New Projects I dont see a template for .NET 2.0

Can I obtain a template for .NET 2.0?

Regards,
Prince
Left by Prince Richard on Jan 20, 2010 10:36 PM

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

Requesting Gravatar...
I have VS 2005. I have installed .net framework 3.5. I want to install ajax 3.5. Can I do it?
Left by Vision on Feb 05, 2010 6:57 PM

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

Requesting Gravatar...
I can run ajax tool in vs 2008 please provide me the help.

Pankaj Sharma
9314004598
Left by Pankaj Sharma on Apr 24, 2010 2:12 AM

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

Requesting Gravatar...
Great information thanks for sharing.:))
Left by izmir temizlik firmaları on Apr 30, 2010 8:59 PM

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

Requesting Gravatar...
Is there any installer for Visual Studio 2010 in Win7?
Left by Federico on Aug 03, 2010 12:33 AM

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

Requesting Gravatar...
Visual Studio is also very useful ..
Left by iso 9001 on Sep 29, 2010 1:38 PM

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

Requesting Gravatar...
Hi,
I developed a website, for development I use VS 2005, asp.net 2.0 ajax extensions 1.0 tools.
I used MaskedEditValidator, MaskedEditExtender and CalendarExtender
in my local server were framework 2.0 is installed. Application runs perfectly.
Form ex: when I use calendar and pick any date it is displayed in date text box.
I masked text box as “__/__/____”(mm/dd/yyyy).

But when I published same web side in a different server it is not working
New server having VS 2010 and framework 4
Problem is when I use calendar and pick any date, date is not displayed in date text box.
and masked text box look like “__-__-____”.

If any one having any idea or solution then please share with me.

Thanks and Regards,
Prakash

Left by Prakash on Oct 19, 2010 6:57 PM

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

Requesting Gravatar...
I am working with visual studio 2008.but in 2008 in toolbox all controls r in version 2.0.so i cant work with ajax 3.0 and m not able to use ajax 2.0 in 2008......
Plz if u knw the answer then let me know......
Left by kinjal on Oct 20, 2010 10:37 AM

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

Requesting Gravatar...
Hellow Sir,
I am using visuval studio 2008. Accutuvally my applications developing in visuval studio 2005 but in this applications is not running in the visuval studio 2008 error is coming. it showing on the error ajax extenstion toolkit error. so which version are using on the vs2008
plese reply this one sir
Left by Ramu on Oct 29, 2010 6:05 PM

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

Requesting Gravatar...
HEY THERE EVERY ONE THIS PAGE HELPS A LOT AND IT PUSHED THE BURDEN AWAY FROM MY SHOULDERS ....
Left by PAPA on Dec 11, 2010 7:06 PM

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

Requesting Gravatar...
Hi everyone, I have succeeded in getting the ajax control toolkit into my tool box (visual studio 2008 professional) but the issue is some of the controls are not enabled when I try dragging them unto my form. Please somebody help.
Left by Andy on Dec 31, 2010 6:57 AM

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

Requesting Gravatar...
Help me devlop a project
asp.net with ajax
Left by aashu26482 on Mar 21, 2011 1:34 PM

# ASP.NET 2.0 AJAX Applications in Visual Studio 2008

Requesting Gravatar...
Help me devlop a project
asp.net with ajax
Left by yakin on Jun 04, 2011 1:14 PM

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

Requesting Gravatar...
I developed the web application in visual studio 2008 frame work 2.0 . Is it working in frame work 3.0 also?If did not work means what can I do for working on framework 3.0?
Left by gita on Jun 23, 2011 5:15 PM

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

Requesting Gravatar...
how to create template in ajax
Left by safeek on Oct 10, 2011 4:55 PM

Your comment:

 (will show your gravatar)