Share via


RenderWorkItemTimeout(System.Web.UI.HtmlTextWriter) Method

The RenderWorkItemTimeout method of the WebPart class renders HTML in a Web Part when a work item has timed out.

Parameters

writer   An HtmlTextWriter that defines the output to render when a work item times out.

Remarks

If a Web Part does not override the RenderWorkItemTimeout method, a default system error message is rendered. The timeout setting is specified by the value of the Timeout attribute of the <WebPartWorkItem> tag that is contained within the <SharePoint> tag in the web.config file.

Example

The following code example shows how to override the RenderWorkItemTimeout method.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security