订阅Web控件 [英] Subscribing to Web Controls

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

问题描述

大家好,

我正在使用ASP C#开发.我试图通过仅发送一种方法,然后在发生查询事件时,查看是否有一种方法可以让一个Web控件(主控件)订阅另一个Web控件(搜索控件)中的事件.单击按钮),它会返回结果(返回数据表).

我认为目标是使搜索控件不了解主控件.有点像自上而下的过程.有没有什么方法可以解决这个问题?我研究了委托方法和EventHandler(EventArgs)方法,但看不到如何应用.有人能指出我正确的方向吗?

任何帮助将不胜感激!提前谢谢!

Hey all,

I'm working with asp c# development. I'm trying to see if there is a way to have one web control (Main control) subscribe to an event in another web control (Search control) by only sending in a method, and then when a query event occurs (Button click) in the search web control, it sends back results (returning a datatable)

I think the goal is to have the search control be unaware of the main control. Kind of like a top down process only. Is there any method that can work to accomplish this? I've looked into delegate methods and EventHandler (EventArgs) methods, but can't see how this could apply. Can anyone point me in the right direction?

Any help would be greatly appreciated! Thanks in advance!

推荐答案

 

 谢谢您的发帖!我建议您将您的问题发布在 asp .net

 Thank you for your post!  I would suggest please post your question in the forums for asp .net

位于此处: http://forums.asp.net

 located here: http://forums.asp.net

 祝你有美好的一天!!!!!

 Have a great day!!!!!


这篇关于订阅Web控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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