Hello,
ASP.NET application uses request/response architecture, and it may not be
suitable for asynchronous call to a web service. Regarding your code:
private void btnStartFileSearch_Click(object sender, System.EventArgs e)
{
MyWordCountCallback = new AsyncCallback(WordCountCallback);
/* Create new instance of the webservice that provides
the required functionality*/
GetWordCount=new localhost.ASPNetSuperheroService();
GetWordCount.BeginWordCount(MyWordCountCallback,Ge tWordCount);
}
After BeginWordCount, the response will be write back to client, won't wait
here. You have to use synchronous call here.
Luke
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)