从另一个页面触发用户控件的按钮单击事件.

问题描述:

我有一个场景来触发popupusercontrol的按钮单击事件.如何在使用该usercontrol的所有页面中实现该事件.请帮帮我.

在此先感谢

I have a scenario to trigger an popupusercontrol''s button click event.How can i achieve it in all the pages where i using that usercontrol.Please help me out.

Thanks in advance

您可以在用户控件内编写带有所需代码的公共函数,然后从页面中调用它,也可以使用JavaScript触发按钮点击事件.如果您想使用示例,请使用改进问题链接并粘贴相关代码.
You can either write a public function with the desired code inside the usercontrol and call it from the page or you can use javascript to fire the button click event. If you want an example use improve question link and paste relevant code.