At which point in the lifecycle does GetConnectionInterface get called?
-
01-07-2019 - |
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.
Solution
According to this document, it looks like Load.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow