• 0
  • 8
  • 23.5k

Asynchronous call

Apr 15 2008 8:49 AM

Hi All,

I am performing some database operation using Asynchronous call in web application.
My question is --
Is it necessary to Register the async task on page using
 Page.RegisterAsyncTask(new PageAsyncTask(
               new System.Web.BeginEventHandler(this.BeginMethod),
               new System.Web.EndEventHandler(this.EndMethod),
               new System.Web.EndEventHandler(this.GetTimeout),
               null, true));
method ???

Can't I do it in another way by

1. not using Page.RegisterAsyncTask
2. Declaring a delegate and using BeginInvoke and EndEnvoke method ???

Pls suggest...

Thanks in advance :-)

Answers (2)