473,473 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

AJAX and webprojects?

I have a solution with four webprojects developed in Visual Studio 2003.
It is upgraded to Visual Studio Team System 2005 / Framework 2.0.

Now I tried to AJAX enable one of the web projects.

1) I installed AJAX and did a demo based on Scotts ToDo demo application. It
worked fine.
2) Then I carefully copied all sections from the web.config file of the demo
to my real project.
3) I added ScriptManager and UpdatePanel to one very simple web page. It
complained that the assemblies were not available.
4) I added System.Web.Extensions and System.Web.Extensions.Designer to my
project references. The errors disappeared and the solution compiled.

But when I run, it does not work!
The application compiles and work but the AJAX enabling makes no difference.
I still get all the roundtrips that I intended to avoid.
I have checked my web.config several times for possible mistakes, but found
nothing.

Is it not possible to run AJAX on old style "webprojects"?
All examples I have seen so far are based on VS2005 "web sites".
Apr 18 '07 #1
6 1390
It will work with the Web Application Project. I got it running after a bit of trial and errror as well. Adding the following config handlers worked well for me:

<httpHandlers>

<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

</httpHandlers>

<httpModules>

<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</httpModules>

Something to keep in mind, there are actually a lot of bad examples of these config settings out there since a lot of them are for the beta releases. I've seen this configuration recommended as well (http://ajax.asp.net/files/Migration_...ta2_to_RC.aspx) but the lines I mentioned before worked.


--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Jakob Lithner" <ja******@noemail.noemailwrote in message news:44**********************************@microsof t.com...
>I have a solution with four webprojects developed in Visual Studio 2003.
It is upgraded to Visual Studio Team System 2005 / Framework 2.0.

Now I tried to AJAX enable one of the web projects.

1) I installed AJAX and did a demo based on Scotts ToDo demo application. It
worked fine.
2) Then I carefully copied all sections from the web.config file of the demo
to my real project.
3) I added ScriptManager and UpdatePanel to one very simple web page. It
complained that the assemblies were not available.
4) I added System.Web.Extensions and System.Web.Extensions.Designer to my
project references. The errors disappeared and the solution compiled.

But when I run, it does not work!
The application compiles and work but the AJAX enabling makes no difference.
I still get all the roundtrips that I intended to avoid.
I have checked my web.config several times for possible mistakes, but found
nothing.

Is it not possible to run AJAX on old style "webprojects"?
All examples I have seen so far are based on VS2005 "web sites".
Apr 18 '07 #2
On Apr 18, 4:24 pm, Jakob Lithner <jakli...@noemail.noemailwrote:
I have a solution with four webprojects developed in Visual Studio 2003.
It is upgraded to Visual Studio Team System 2005 / Framework 2.0.

Now I tried to AJAX enable one of the web projects.

1) I installed AJAX and did a demo based on Scotts ToDo demo application. It
worked fine.
I think you'll find Gaia Ajax Widgets easier to use...
http://ajaxwidgets.com

Check out any of the samples like e.g.:
http://ajaxwidgets.com/AllControlsSa...goCreator.aspx
http://ajaxwidgets.com/AllControlsSa...imePicker.aspx
or
http://ajaxwidgets.com/AllControlsSa...apsMashup.aspx (works
only in IE since it builds on LiveMaps that's not 100% FF comptible)

..t

Apr 18 '07 #3
Hi,

ASP.NET AJAX 1.0 should be supported in Web Application Project.

To try this another way: you can create a simple AJAX enabled web site and
compare those sections in web.config. Or you can copy those sections from
your web.config into AJAX created default web.config and copy it back to
your web project.

#ASP.NET AJAX Configuring ASP.NET AJAX
http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx
Please feel free to let us know if there's anything unclear. Thanks.
Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 19 '07 #4
No problem there.
I already have these settings identical.
Apr 19 '07 #5
This approach was helpful.
I copied the real web.config into the demo project and it got the same
problems!
I had already checked that all AJAX sections were identical, so now I tried
to remove all other settings one by one.

The one that did the difference was:
<xhtmlConformance mode="Legacy"/>

I never put it there and never heard of it before!
When looking on the web I found a helpful explanation on Scotts blog:
http://weblogs.asp.net/scottgu/archi...-net-ajax.aspx
Apr 19 '07 #6
Hi,

I'm glad you've found the root cause.

Thank you for sharing your experience here, this will surely benefit the
community!

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 19 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Yarco | last post by:
I want to use "Ajax" to create my web for hobby. But i don't know whether "Ajax" is mature... And what about with php? Someone have experience on it? ....
4
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but...
0
by: melledge | last post by:
Ajax Developers' Day added to XTech 2006 agenda XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The Netherlands
0
by: melledge | last post by:
Ajax Developers' Day to Kick Off XTech 2006 Conference Industry experts offer insight into next generation of the Web ALEXANDRIA, VIRGINIA, USA - April 25, 2006 - In response to the rapidly...
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
10
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
controlsPlease could some of you here post some of your live examples of AJAX (esp drag panels, collapsable panels, and popup menu.) (It's one thing to talk about how great something is, but it's...
2
by: soni2926 | last post by:
hi, does anyone know of any good books on ajax and asp.net, one that teaches ajax itself before jumping in atlas? I wanted to get an understanding of ajax and how to use it, most books i've seen...
1
by: shaunwo | last post by:
I'm an AJAX / DOM Novice (at best) and trying to figure out how to write the value to a couple input fields. I don't remember exactly where I got the ajax.js file I'm using from (went to the website...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.