I need to use the value passed by the default sharepoint filter web part. I do not see how the user sharepoint web part can establish a connection and receive data. Is it possible?
Update
The WebPart provider is the default SharePoint list filter WebPart. Custom WebPart is a custom website.
This is the code I came up with, but the Connections option is still inactive on the SharePoint page. On the page, I have a SharePoint list filter web pane and my CustomPageViewer web page.
namespace PageViewerWithConnections.CustomPageViewer
{
[ToolboxItemAttribute(false)]
public class CustomPageViewer : System.Web.UI.WebControls.WebParts.WebPart
{
IFilterValues _filterVals;
[ConnectionConsumer("Consumer connection", "Consumer param")]
public void ConsumeFilter(IFilterValues filterValues)
{
_filterVals = filterValues;
}
Microsoft.SharePoint.WebPartPages.PageViewerWebPart objPageViewer;
protected override void CreateChildControls()
{
}
}
}
- URL- - - , - SharePoint. , - SharePoint List - .