摘要:
1、创建SharePoint解决方案,添加两个WebPart分别用来发送和接收; 2、发送值的WebPart需要继承自IWebPartField(当然,根据需要还可以选择IWebPartField,IWebPartParameters,IWebPartRow,IWebPartTable,具体参见msdn),原理是将需要发送的值,放到一个接口实例里; public class SendWebPart : WebPart, IWebPartField 详细代码: 1 private TextBox tb; 2 private Button btn; 3 4 protected over... 阅读全文