在其父页面中处理用户控件的按钮单击. [英] handle button click of user control in its parent page....

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

问题描述

你好

我的页面(customers.aspx)上有一个用户控件(filter.ascx).在我的用户控件(filter.ascx)上,我单击按钮以过滤数据和需要绑定到页面(customers.aspx)中的网格的相同数据.我怎样才能做到这一点.我是否需要使用应在单击按钮时在页面中触发事件的回调事件,还是需要通过查找父网格控件来处理用户控件中的所有事件?请帮忙...

注意:-我们可以通过使用回调事件来做到这一点吗?...

感谢

Hello

I have a user control (filter.ascx) on my page (customers.aspx). on my user control(filter.ascx) i am clicking button to filter the data and same data i need to bind to the grid in my page (customers.aspx). How can i do that. do i need to use a call back event that should fire an event in my page when i click button or do i need to handle this all in user control by finding parent grid control. please help...

Note:- can we do it by using callback events....

thanks

推荐答案

请参考

处理LinkBut​​ton中的单击事件来自父ASP.NET页的用户控制 [用户控制按钮单击事件 [
Handling user control events on the parent page[^]
Handle Click Event for LinkButton in User Control from Parent ASP.NET page[^]
User control button click event[^]


这篇关于在其父页面中处理用户控件的按钮单击.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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