Review of Making Web Service Calls
page 9 of 17
by Wenfeng Gao
Feedback
Average Rating: 
Views (Total / Last 10 Days): 79784/ 247
Article Contents:

Making Web Service Calls from ASPX Pages: Asynchronous PreRequestHandler Execution vs. Asynchronous Pages

Both approaches have no big differences on performance from my testing. An asynchronous page serves one page while an asynchronous PreRequestHandler execution serves all the pages. So an asynchronous PreRequestHandler execution normally has to filter pages. An asynchronous page might serve as the base class for a set of pages or a standalone page. Asynchronous pages have slightly advantages over asynchronous PreRequestHandler execution in this aspect.

 

As we noted before, the end point of the asynchronous page approach is after the Page_Load event (actually after the ProcessRequest call). This may cause problem if we try to do page redirects during the ProcessRequest process. Actually Server.Transfer doesn’t work though Response.Redirect works. This is a big drawback.


View Entire Article

User Comments

Title: Code example   
Name: Sean Anderson
Date: 2009-05-26 8:02:17 AM
Comment:
Likewise, I would be very interested in seeing a working example of this, as I have read the article here (and the one on MSDN) both of which give a very good overview of the approach, but without a full example I am rapidly getting stuck.
Title: Great articles but...   
Name: Pascal
Date: 2009-05-21 7:38:29 AM
Comment:
Same comments, great articles but would be nice to have a sample code, not that easy to try when you don't know where you going.
Title: req sample code downloadable..   
Name: Karthik
Date: 2006-01-02 1:13:44 AM
Comment:
Hi,
the article was a nice one.
it would be more good if sample code(downloadable) for asynchronous webservices.
can that be done?

Regards,
Karthik






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-11-17 2:37:05 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search