Showing posts with label AJAX. Show all posts
Showing posts with label AJAX. Show all posts

Wednesday, February 25, 2009

Response.Redirect does not work in AJAX callback functions

If you can't seem to use Response.Redirect in UpdatePanel's AJAXified callback function, add the following in your web.config file in the appropriate place:

<configuration>
<system.web>
<httpmodules>
<add type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" name="ScriptModule">
</httpmodules>
</SYSTEM.WEB>
</configuration>

Try now, and it works!

--
Paras Wadehra