re:
!I just can't believe it's this much trouble
Again, it's not.
All you need to determine is whether system.web.extensions
and the Script Manager are installed.
See :
http://msdn.microsoft.com/en-us/library/bb907614.aspx
for what you need to look for.
As far as the actual web.config lines needed, they are :
1.
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensions SectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
2.
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
2a.
dependentAssembly...
assemblyIdentity name="System.Web.Extensions.Design
3.
....and the lines which refer to the "ScriptHandlerFactory", "ScriptHandlerFactoryAppServices" and "ScriptResource"
That's it...
All the rest of the stuff in web.config is other .Net 3.5-related.
But, again, the best way to handle this is not to perform surgery
on an existing app but, rather, to create a new Ajax-enabled app
and add whatever functionality you have in your Ajax-less app.
You can't go wrong with that.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================
"Jonathan Wood" <jw***@softcircuits.comwrote in message news:e1**************@TK2MSFTNGP04.phx.gbl...
Juan,
>!I can't believe adding AJAX to an existing page is going to be this much trouble
It's not.
The easiest way I've found to do that is to create
a new Ajax application, and saving the web.config file.
All you have to do then is copy and paste the contents
of the web.config to any non-Ajax application's web.config.
As I mentioned previously, I find working with the web.config file can be unwieldy. I've spent a LOT of time tweaking
the two versions of web.config (development and deployed versions) for this particular application. There's no way I'd
copy and paste the entire contents of a brand new web.config file. And I have no idea how readily I'll be able to
determine what part of the config file is AJAX related.
Surely others have done this before. I just can't believe it's this much trouble.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com