GetRequiresData Method

The GetRequiresData method of the DataViewWebPart class overrides the Microsoft.SharePoint.WebPartPage.WebPart.CreateWebPartMenu method. It indicates whether this Web Part needs data during this round of communication.

Return Value

true registers this Web Part for the appropriate BeginDataRetrieval and EndDataRetrieval events.

Remarks

The GetRequiresData method helps distinguish between a connection with another Web Part and a postback.

Requirements

Platforms: Microsoft Windows 2003 Server

Security: Code Access Security