做个简单的记录:

1.发送页面:

继承DotNetNuke.Entities.Modules.Communications.IModuleCommunicator
public event ModuleCommunicationEventHandler ModuleCommunication;

 ModuleCommunicationEventArgs oArgs = new ModuleCommunicationEventArgs();
oArgs.Text 
= rootId;    //传递值
oArgs.Sender 
= "Sender";
oArgs.Target 
= "me";  //传递标志
if (ModuleCommunication != null)
    ModuleCommunication(
this, oArgs);

2.接收页面:
继承 DotNetNuke.Entities.Modules.Communications.IModuleListener
 public void OnModuleCommunication(object s, ModuleCommunicationEventArgs e)
{
    
if (e.Target == "me")
    {
        
//接收变化
       Response.Write(e.Text);
     }
}

“光棍节快乐”! 呵呵。。。。

相关文章:

  • 2021-08-08
  • 2022-02-27
  • 2021-05-24
  • 2021-10-09
  • 2021-08-25
  • 2021-06-10
  • 2021-08-13
  • 2021-09-20
猜你喜欢
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-07-12
  • 2021-11-13
相关资源
相似解决方案