So I have an asp.net 2.0 web application and I created a web service to post some data from a web form to a database. I now want to use jQuery/AJAX to post the data to the server but since the application is 2.0 and not 3.5+ I don’t have the System.Web.Script.Services.ScriptService namespace which seems to be needed (I am posting JSON objects)?
Is there a workaround for this (without upgrading the web application to 3.5)?
Thanks in advance.
EDIT
I installed http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en and restared VS2010 but can still not use the namespace.
Yes, you can do this without 3.5. First, install Microsoft’s AJAX Extensions (aka ASP.NET AJAX 1.0).
Next, you need to add an
HttpModuleto your web.config (or machine.config; your hosting provider may already have this configured):