Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET - Response.Redirect() broke the UpdatePanel's add_endRequest()

Status
Not open for further replies.

fletchsod

Programmer
Dec 16, 2002
181
I noticed that when calling ASP.NET's "Response.Redirect()" script effectively prevent the "Sys.WebForms.PageRequestManager.getInstance().add_endRequest()" from firing.

Since Response.Redirect is ASP.NET server-side event while add_endRequest() is ASP.NET Ajax client-send event, so that make sense. So, what is my alternative option (or a workaround to it) to have the add_endRequest() be called before Response.Redirect()?

Thanks...
 

Have you tried Response.Redirect(<< Your URL >>, False)? The endResponse parameter allows the remaining page code to execute, which should allow the end_request().


Mark

"You guys pair up in groups of three, then line up in a circle."
- Bill Peterson, a Florida State football coach
 
Yes, it's set to false. The webpage get redirected too soon to allow AJAX to finish.
 
what do you mean "allow the ajax to finish"? you wouldn't see the ajax finish since you are redirecting. if you want to see the result of the ajax request and then redirect you need to do this on the client, not the server.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top