具有多种接口类型的Sharepoint Web部件 [英] Sharepoint Web Part with multiple Interface types
问题描述
我已经创建了三个小型的Sharepoint Web部件(使用VSExtensions 1.2).每个Web部件都可以独立工作.如何安排Webpart B(包含一个数据网格)使用Webpart A的一个参数(单个值,文本),并可以向Webpart C提供一个行参数?
例如. :
webpart A:从数据库中检索项目数据(编号和名称).将项目编号作为参数发送到WebpartB.
Web部件B:从数据库中检索从Web部件A消耗的项目编号的项目任务(显示在datagridview中,不可编辑).用户操作(单击按钮)后,它将行数据(项目编号和任务编号)发送到Web部件C. br/>
Web部件C:使用Web部件B的项目任务信息,并向用户提供可编辑的"数据.
感谢您的帮助.
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.
推荐答案
您想要的是可连接的Webparts
http://msdn.microsoft.com/en-us/library/ms469765.aspx [ ^ ]
What you want are connectable webparts
http://msdn.microsoft.com/en-us/library/ms469765.aspx[^]
这篇关于具有多种接口类型的Sharepoint Web部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!