Question

I have this method on a webpart:

private IFilterData _filterData = null;

[ConnectionConsumer("Filter Data Consumer")]
public void GetConnectionInterface(IFilterData filterData)
{
    _filterData = filterData;
}

Now, before I can call upon _filterData, I need to know when i can expect it to not be null. When is this?!

Without knowing this, the best I can do is stuff all of my _filterWebpart dependent code into the last lines of OnPreRender and hope for the best.

Was it helpful?

Solution

According to this document, it looks like Load.

http://msdn.microsoft.com/en-us/library/ms366536.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top