Click here to Skip to main content
15,903,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created three small Sharepoint web parts (using VSExtensions 1.2). Each webpart can work independently. How can I arrange that webpart B (which contains a datagrid) consumes a parameter (single value, text) from Webpart A and can provide a row parameter to webpart C?

E.g. :
webpart A: retrieves project data (No. and name) from a database. Sends the project number as a parameter to Webpart B.
webpart B: retrieves project tasks (displayed in datagridview, not editable) from a database for the project number consumed from webpart A. Upon user action (button-click) it sends row data (project number and task number) to webpart C.
webpart C: consumes project task information from webpart B, and offers "editable" data to the user.

Thanks for your help.

Posted

1 solution

What you want are connectable webparts

http://msdn.microsoft.com/en-us/library/ms469765.aspx[^]
 
Share this answer
 
Comments
DoxMan 4-Aug-11 8:04am    
In a way yes, and that is working. (Webpart A provides text value to webpart B or call it: B consumes from A.) But the question is, how can I make sure B consumes a single text from A, but is able to provide a "data row" to C?
[no name] 4-Aug-11 8:18am    
Have B consume from A and C consume from B. It's up to you, as the developer, to provide the proper interfaces and methods to make this happen.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900