System.Web.UI.Page.RegisterAsyncTask Method

Registers a new asynchronous task with the page.

Syntax

public void RegisterAsyncTask (PageAsyncTask task)

Parameters

task
A System.Web.UI.PageAsyncTask that defines the asynchronous task.

Remarks

Define an asynchronous task using the System.Web.UI.PageAsyncTask class. When the task is defined, use the Page.RegisterAsyncTask(PageAsyncTask) method to register the task with the page. After registering the task, invoke the Page.ExecuteRegisteredAsyncTasks method to begin the asynchronous task.

The Page.RegisterAsyncTask(PageAsyncTask) method can be used with both synchronous and asynchronous pages.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0