Introducing Asp.Net Ajax 4.0 Preview

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

    Favorites, Groups & Events

    Introducing Asp.Net Ajax 4.0 Preview - Presentation Transcript

    1. 陈广琛 Microsoft ASP.NET MVP Baidu Web Front-End Engineer
    2. ASP.NET AJAX 4.0 Features
      • ADO.NET Data Service Client Library
      • ASP.NET AJAX Template
    3. ADO.NET Data Service Client Library
      • ADO.NET Data Service
        • RESTful
        • Atom
      • ADO.NET Data Service Client Library
        • Proxy Class
        • CRUD Operation
        • Action Sequence (Batch)
    4. Connection
      • Proxy Class
        • Sys.Data.AdoNetDataProxy
      • Simple and Easy
        • var dataService =
        • new Sys.Data.AdoNetDataProxy(
        • “ DataService.svc”);
    5. CRUD - Query
      • One Method Only
        • dataService.query(“/Products”,
        • successCallback,
        • failureCallback);
      • RESTful URL
        • “ /Products?$orderby=Price&$top=10”
        • “ /Products?$filter=
        • Category eq ‘food’”
    6. CRUD - Insert
        • var newProduct = {…}
        • dataService.insert(
        • newProduct,
        • “ /Products”,
        • successCallback,
        • failureCallback);
    7. CRUD - Update
        • var product = products[i];
        • dataService.update(
        • product,
        • successCallback,
        • failureCallback);
    8. CRUD - Remove
        • var product = products[i];
        • dataService.remove(
        • product,
        • successCallback,
        • failureCallback);
      • ADO.NET Data Service Client Library
    9. ASP.NET AJAX Template
      • Instantiate Declaratively
      • Data Binding
        • One-Way
        • Two-Way
    10. JavaScript Syntax
      • $create(
      • Sys.UI.DataView, {
      • serviceUri: “DataService.svc",
      • query: “/Products“
      • }, {}, {}, $get(“productList") );
    11. Declarative Syntax
      • <body
      • xmlns:sys=“javascript:Sys”
      • xmlns:dataview=“javascript:Sys.UI.DataView”
      • sys:activate=“*” >
      • <ul
      • sys:attach=“dataview”
      • dataview:datasource=&quot;{{ new
      • Sys.Data.AdoNetDataSource() }}“
      • dataview:serviceuri=“DataService.svc&quot;>
      • <li></li>
      • </ul>
      • </body>
      • ASP.NET AJAX Template
      • Contact me via http://catchen.biz

    + Cat ChenCat Chen, 8 months ago

    custom

    332 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 332
      • 332 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 13
    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