以编程方式连接自定义Webparts(用户控件)

编程入门 行业动态 更新时间:2024-10-25 19:24:17
本文介绍了以编程方式连接自定义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(用户控件)

本文发布于:2023-11-28 07:36:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641497.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   控件   方式   用户   Webparts

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!