繁体   English   中英

如何在aspx页面中调用usercontrol事件

[英]How to call the event of usercontrol in page of aspx

我已经创建了用户控件。 有事件:

public event System.EventHandler MemberSelectionChanged; 

我已经在aspx页面中将此事件称为此事件(如下所示)。 工作正常。 还有什么其他方法可以在aspx页面中调用用户控件事件。

this.ucMemberList.MemberSelectionChanged += new EventHandler(MemberList_MemberSelectionChanged);

Shalni,如果在“调用”下,您是指为事件分配处理程序,因此您以正确的方式进行了操作。 不知道其他方式。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM