asp.net中回调的用途是什么? [英] what is the use of callback in asp.net?

查看:81
本文介绍了asp.net中回调的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



告诉我在asp.net中使用回调。你能否给我实时的例子来清楚地理解这个概念。

请给我解决这个问题的方法。

解决方案

回调是大多数编程语言都提供的功能。



定义(来自wiki)非常好 - 在计算机编程中,回调是一段可执行代码传递作为其他代码的参数,期望在某个方便的时间回调(执行)参数。





客户端回调在ASP.Net中执行类似的功能来刷新各种控件上的数据。

加载控件,然后在方便的时候调用客户端方法(一旦所有数据都可用)。

许多控件都采用这种方法。这样可以避免完整的页面发布。



阅读更多相关信息此处 [ ^ ]。

Hi,
Tell me the use of callback in asp.net. Can u give me the real time examples to understand the concept clearly.
Kindly give me the solution for this problem.

解决方案

Callback is a feature available in most programming languages.

The definition (from wiki) is very good - "In computer programming, a callback is a piece of executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time".


Client callbacks perform a similar function in ASP.Net to refresh data on various controls.
Controls are loaded and then a client method is invoked at a convenient time (once all data is available).
Many controls work on this approach. This avoids a complete page post.

Read more about this here[^].


这篇关于asp.net中回调的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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