I have a web page that has two web part zone with two different visual web parts on them. I would like to connect the visual web parts programmatically (when the page loads) by a field on each of the Visual web parts (event_id).
I found quite a few good sites on this but seem to hit a wall when it comes to defining "mgr" as found here: http://kvdlinden.blogspot.dk/2011/02/programmatically-connect-two.html
Can anyone assist?
To create connectable web part in SharePoint, the basic steps are creating the web part connection interface, creating provider web part, consumer web part, adding code behind in visual web parts to handle post back properly, you can following the article provided below to try to create two connectable web parts:
TechNet Community Support