kad1r
8/1/2013 - 7:49 AM

Async calls in ASP.Net

Async calls in ASP.Net

delegate void _asyncFunction(params object[] args);

static void Main()
{
    _asyncFunction _delegate = new _asyncFunction(Foo);
    _delegate.BeginInvoke(new object[] { "fooo" }, null, null);
}

static void Foo(params object[] args)
{
    // do something ...
}

// usefull articles
// 1. http://www.ben-morris.com/making-an-asynchronous-call-in-asp-net-on-synchronous-pages
// 2. http://www.dotnetcurry.com/ShowArticle.aspx?ID=237