以编程方式连接自定义Webparts(用户控件) [英] Programatically connect custom webparts(user control)

查看:63
本文介绍了以编程方式连接自定义Webparts(用户控件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,

我已经研究了许多博客,但无法获得连接自定义Webpart(将用户控件包装在smartpart中)的解决方案.基本上我有两个用户控件,每当创建一个子站点时都会部署它们.我想连接这些Webparts.如果有人有解决方案,请帮助我.

Dear sir,

I have studied number of blogs but i could not be able to get the solution to connect custom webpart(user control wraped in smartpart).Basically i have two user control which are deployed whenever a subsite is created.i want to connect these webparts.if someone have a solution.please help me.

推荐答案

我假设连接"是指创建可连接的Web部件.在这种情况下,您需要在包装用户控件的Web部件上实现提供者和使用者接口,然后将信息传递给用户控件.
I assume by "connect" you are referring to creating connectable webparts. In this case, you''ll need to implement the provider and consumer interfaces on the webparts that wrap the user controls, then pass the information to the user controls.


这篇关于以编程方式连接自定义Webparts(用户控件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆