In a page, I would like to have two webparts. The first one will have the data (e.g. a form) and the second will have the buttons (e.g.submit). Is it possible that the second one could get the values entered in the first webart?

This is a simpler version of what I need to implement.

Thank you

1 Answer 1


There are two ways web parts communicate.

First, from a Web Part you can reach other Web Parts in the same zone at least, WebPart.Zone Property. Then you can set the property on all in the same zone, for example like this:

if (Zone == null) return;
  Where(webPart => webPart is MyWebPart).ToList().
  ForEach(webPart => ((MyWebPart)webPart).MyProperty = "Hello, world!");

Second, You can also use Web Parts Connections to connect the Web Parts together. Although I personally find this a bit cumbersome.

More Info: Web Part Connections

One more solution is to implement updating of properties through querystring/request parameters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.