Your SlideShare is downloading. ×
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Introducing Asp.Net Ajax 4.0 Preview
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Introducing Asp.Net Ajax 4.0 Preview

1,348

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,348
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
40
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

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);
  • 9.
    • ADO.NET Data Service Client Library
  • 10. ASP.NET AJAX Template
    • Instantiate Declaratively
    • Data Binding
      • One-Way
      • Two-Way
  • 11. JavaScript Syntax
    • $create(
    • Sys.UI.DataView, {
    • serviceUri: “DataService.svc",
    • query: “/Products“
    • }, {}, {}, $get(“productList") );
  • 12. 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>
  • 13.
    • ASP.NET AJAX Template
  • 14.
    • Contact me via http://catchen.biz

×