Hi Thomas,My suggestion will be to first trace where the events are happening. |
humbleapprentic posted on Monday, August 20, 2007 6:26 AM
|
Hi Thomas,
My suggestion will be to first trace where the events are happening. Take
your webpart and place it in an ASP.NET portal framework page, set your break
points and test it. I found that if you want to connect web parts using the
portal framework you have to do it programmaticaly (supposedly you can do it
at run time but I still learning the portal framework). To connect them there
are a few steps to follow:
* Provide a definition for "ConnectionConsumer" and "ConnectionProvider"
* OnInit should create a handler for Page_Load (so Page.Load += new
EventHandler(Page_Load);)
* On page load create a WebPartManager.ConnectionsActivating += new
EventHandler(WebPartManager_ConnectionsActivating);
Here is a few links that could help you:
http://www.carlosag.net/Articles/WebParts/moreRealSample.aspx
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/webparts/connections.aspx
http://msdn.microsoft.com/msdnmag/issues/06/02/BasicInstincts/.
You don't have to use IField if you don't want to, as long as they share a
common interface is all good. Let me know if you need more, I am working on a
similar project (and it is painful so I want to safe others the pain).
Cheers,
humble.apprentice |
 |
|
Passing parameters from one webpart to another |
Thomas posted on Monday, August 20, 2007 5:00 PM
|
Thanks a lot for your help :) It was very usefull
Cheers,
Thomas |
 |
|