Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

WebPart.GetData method

NOTE: This API is now obsolete.

Called when the System.Web.UI.Control.PreRender event occurs to allow a Web Part to retrieve data.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ObsoleteAttribute("Use IConnectionData.GetData() instead.")]
public virtual void GetData()

The GetData method is used in conjunction with the GetRequiresData method. A connectable Web Part that requires data should override the GetData method. If the Web Part needs to retrieve data during the PreRender event, it should start an asynchronous worker thread to retrieve the data. If the Web Part needs to wait for data from a connected Web Part, such as a Web Part that implements the IFilterConsumer interface, it should do nothing.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.