在用户控件中引发事件 [英] Raising an Event in user control

查看:94
本文介绍了在用户控件中引发事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我解决代码或一些好的链接,我无法在用户控制中找到适当的代码来提高事件感谢提前

解决方案

< blockquote>本提示旨在自动将它们添加到您的代码中:添加事件的简单代码片段 [ ^ ]但它提供了如何创建然后从用户控件发出事件信号的模板。当您向任何订阅处理程序发出信号时,您所做的只是调用On<事件名称>方法。


你的问题不够明白,但这些对你有很大帮助..

如何为用户控件创建事件 [ ^ ]

Event-delegation-aspnet-raise-event.html [ ^ ]

如何在一个用户控制并在主页中捕获一个事件_ [a href =http://stackoverflow.com/问题/ 6192739 / how-do-i-raise-an-event-in-a-usercontrol-and-catch-it-in-mainpagetarget =_ bla nktitle =新窗口> ^ ]

如何添加事件到用户控制在c [ ^ ]

如何到工作与 - 代表 - 和 - event-handler-for-user-control [ ^ ]

抬起事件,从用户控制,TO- main-page-event-delegation-from-user-control-to-aspx-page-in-aspnetc / [ ^ ]

Can anyone help me out with the code or some good link ,i am not able to find proper code for practice for raising event in user control Thanks in Advance

解决方案

This Tip is intended to automate the process of adding them to your code: A Simple Code Snippet to Add an Event[^] but it provides the template for how to create and then signal an event from your user control. When you signal it to any subscribing handlers, all you do is call the "On<event name>" method.


You question is not clear enough to understand,but these will help you a lot..
How to Create an Event for a User Control[^]
Event-delegation-aspnet-raise-event.html[^]
How-do-i-raise-an-event-in-a-usercontrol-and-catch-it-in-mainpage[^]
How-to-add-an-event-to-a-usercontrol-in-c[^]
How-to-work-with-delegates-and-event-handler-for-user-control[^]
Raise-event-from-user-control-to-main-page-event-delegation-from-user-control-to-aspx-page-in-aspnetc/[^]


这篇关于在用户控件中引发事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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