zoukankan      html  css  js  c++  java
  • asp.net ajax 客户端事件浏览器,ASP.NET AJAX: Clientside event viewer

    Reference:http://weblogs.asp.net/davidbarkol/archive/2007/03/25/asp-net-ajax-client-side-event-viewer.aspx

    Introduction

    Often times when an ASP.NET developer is first learning about the page lifecycle, he puts together a simple application that displays the raised events on the page. This widespread technique helps him understand the order in which the events occur, the arguments that are passed along, and ultimately what can and cannot be accomplished during each event.

    在asp.net 开发者第一次研究页面的生命周期的时候,他们会把这些事件放在一起来显示页面中的触发的事件。这种广泛的技术帮助他去理解事件发生的顺序,最终可以了解在每个事件中知道什么可以做到,什么不可以做到。
    In ASP.NET AJAX, a page lifecyle, similar to the one that occurs on the server; takes place on the client as well. By leveraging the client-side events raised by the Application class and the PageRequestManager, we can take more control of the application during partial-page updates. The figure below illustrates the events that occur within the browser when a successful partial postback is applied.
    在asp.net ajax页面的生命周期中的事件与服务器羰的很相似,通过平衡的使用Application ,RegeRequestManager类,在页面的局部刷新期间,我们可以更多的控制应用程序,下面的图示展示了,页面成功的回传后发后的事件。
    client_Event.JPG
    Client-Side Event Viewer

    To gain a deeper understanding of the client-side event model in ASP.NET AJAX, I've put together an application that exposes the client-side steps that occur during partial postbacks. In addition, the example demonstrates:
    为了对客户端事件的更深入的理解,我把它放在一个应用中,在页面的局部回传时,这展示了客户端事件的步骤。

    • Canceling a postback request
    • Aborting a postback request
    • Client-side error handling
    • Visual feedback for long postbacks (similar to the UpdateProgress control)

    Here is a snapshot of a portion of the application after a typical postback:
    Client event viewer

    Click here to download the source code and let me know what you think.

    Published Sunday, March 25, 2007 11:57 PM by davidbarkol
    Filed under: Atlas, ASP.NET, AJAX

    Comment Notification

    If you would like to receive an email when updates are made to this post, please register here

    Subscribe to this post's comments using RSS

    Comments


  • 相关阅读:
    JStorm集群的安装和使用
    Kafka集群的安装和使用
    Linux下which、whereis、locate、find 命令的区别
    Linux 命令小记
    Linux 普通进程 后台进程 守护进程
    Java 命令行运行参数大全
    一台机子上运行使用不同Java版本的多个tomcat
    Ubuntu 设置程序开机启动(以指定用户身份)
    linux 开机启动过程详解
    关于Linux发行版的选择
  • 原文地址:https://www.cnblogs.com/snowball/p/703101.html
Copyright © 2011-2022 走看看