ASP.NET AJAX Basics

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    ASP.NET AJAX Basics - Presentation Transcript

    1. ASP.NET AJAX Georgi Petrov Telerik, 3/5/2008
    2. Outline
      • Installing ASP.NET AJAX
      • ASP.NET AJAX Architecture
      • Controls in focus:
        • ScriptManager
        • UpdatePanel
        • UpdateProgress
        • Timer
      • ASP.NET AJAX Client Life-Cycle events
      • Client Scripting: JavaScript with ASP.NET AJAX
      • Debugging
      • Web Services
    3. Installing ASP.NET AJAX
      • Remove any previously installed versions from Control Panel / Add or Remove Programs
      • Download the installation package from http:// www.asp.net/ajax /
      • Be sure to have:
        • Any Windows operating system version (including Windows 2000) that supports the Microsoft .NET Framework version 2.0
        • The .NET Framework 2.0 or version 3.0
        • Internet Explorer 5.01 or later
    4. ASP.NET AJAX Architecture Client Script Library Controls, Components Component Model and UI Framework Base Class Library Script Core Browser Compatibility Client Application Services Browser Integration ASP.NET AJAX Server Extensions ASP.NET AJAX Server Controls App Services Bridge Web Services Bridge ASP.NET 2.0 Page, Framework, Server controls Application Services Client Framework & Services Server Framework
    5. ScriptManager
      • A server control that manages partial-page rendering. The
      • ScriptManager control registers script components to send to
      • the browser. It also overrides page rendering so that only
      • specified regions of the page are rendered.
      • Enabling Partial-Page Rendering
      • Using Type System Extensions
      • Registering Custom Script
      • Registering Web Services
      • Using Authentication and Profile Services from Client Script
      • The ScriptManagerProxy Class
    6. UpdatePanel
      • Specifies the parts of a Web page that can
      • participate in partial-page updates. The
      • UpdatePanel in different scenarios:
      • Simple Use
      • Nested UpdatePanel Controls
      DEMO DEMO Some controls are incompatible with UpdatePanel: TreeView, Menu, FileUpload, WebParts, Substitution
    7. UpdatePanel (contd.)
    8. UpdateProgress
      • Provides visual feedback in the browser
      • when the content of UpdatePanel
      • controls is updated.
      <asp:UpdateProgress ID=&quot;UpdateProgress1&quot; runat=&quot;server&quot;> <ProgressTemplate> Please wait… </ProgressTemplate> </asp:UpdateProgress>
    9. UpdateProgress (contd.)
      • Showcase:
      • Showing the update status
      • Showing the update status with STOP button
      DEMO DEMO
    10. Timer
      • The Timer control performs postbacks at defined
      • intervals.
      • Timer control inside UpdatePanel
      • Timer control outside UpdatePanel
      DEMO DEMO <asp:Timer ID=&quot;Timer1&quot; runat=&quot;server&quot;> </asp:Timer>
    11. Recap
      • Installing ASP.NET AJAX
      • ASP.NET AJAX Architecture
      • Controls in focus:
        • ScriptManager
        • UpdatePanel
        • UpdateProgress
        • Timer
      • ASP.NET AJAX Client Life-Cycle events
      • Client Scripting: JavaScript with ASP.NET AJAX
      • Debugging
      • Web Services
    12. Client Life-Cycle events
      • The two main Microsoft AJAX Library classes that raise events during the client lifecycle of a page are the Application and PageRequestManager classes.
      • The key event for initial requests (GET requests) and synchronous postbacks is the load event of the Application instance. When script in a load event handler runs, all scripts and components have been loaded and are available.
      • When partial-page rendering with UpdatePanel controls is enabled, the key client events are the events of the PageRequestManager class. These events enable you to handle many common scenarios. These include the ability to cancel postbacks, to give precedence to one postback over another, and to animate UpdatePanel controls when their content is refreshed.
    13. Client Life-Cycle events Telerik:
    14. Extending JavaScript with ASP.NET AJAX
      • Classes
      • Namespaces
      • Inheritance
      • Enumerations
      • Reflections
    15. Extending JavaScript with ASP.NET AJAX (contd.)
      • Namespaces, Classes, Inheritance
    16. Extending JavaScript with ASP.NET AJAX (contd.)
      • Enumeration
    17. Extending JavaScript with ASP.NET AJAX (contd.)
      • Reflections
      Reflection is the ability to examine the structure and components of a program at run time. The APIs that implement reflection are extensions of the Type class. Type.isInterface( type ); Type.isNamespace( object ); Type.isClass( type ); class .inheritsFrom( class );
    18. Debugging
      • Configuring the Application for Debugging in Web.config
      • Sys.Debug - Debug Helper Class
      • Configuring Internet Explorer for Debugging
      <configuration> <system.web> <compilation debug=&quot;true&quot;> <!-- etc. --> </compilation> </system.web> <configuration> DEMO DEMO
    19. Web Services
      • Simple Web Service
      DEMO Web Service is standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone.
    20. Web Services (contd.)
    21. References
      • http://www.asp.net/AJAX
      • http://forums.asp.net/default.aspx?GroupID=34
      • http://asp.net/AJAX/Documentation/Live/ClientReference/
    22. Q & A session
      • Thank you!

    + petrovpetrov, 2 years ago

    custom

    997 views, 1 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 997
      • 997 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 96
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories