从另一个页面触发用户控件的按钮单击事件. [英] Trigger an user control 's button click event from another page.

查看:70
本文介绍了从另一个页面触发用户控件的按钮单击事件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个场景来触发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.


这篇关于从另一个页面触发用户控件的按钮单击事件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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