1 / 8

AJAX ASP.NET

AJAX ASP.NET. MIS 424 Professor Sandvig. Today. ASP.NET AJAX Controls: built-in properties ScriptManager , UpdatePanel. ASP.NET 2.0 AJAX. ASP.NET provides built-in AJAX functionality Two flavors: Built into some Data Controls Limitations ScriptManager & Update Panel Very flexible.

terah
Télécharger la présentation

AJAX ASP.NET

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AJAX ASP.NET MIS 424 Professor Sandvig

  2. Today • ASP.NET AJAX • Controls: built-in properties • ScriptManager, UpdatePanel

  3. ASP.NET 2.0 AJAX • ASP.NET provides built-in AJAX functionality • Two flavors: • Built into some Data Controls • Limitations • ScriptManager & Update Panel • Very flexible

  4. Server Controls • Built in AJAX functionality • GridView, DetailsView, FormView • Property: AllowSortingAndPagingCallbacks • Benefits • Easy to implement • Limitations: • Controls cannot use templates • Inefficient: retrieves all data and discards extra

  5. UpdatePanel • UpdatePanel • Wrap any server controls • Become AJAX enabled • Benefits • Easy to implement • Flexibility • Mix & match controls • Specify triggers

  6. Update Panel • Disadvantage • JavaScript cannot be tweaked • Fine if it meets your needs • Heavy • All controls are repopulated • Viewstate also sent/received • Example: • Cascading Dropdown: • CarParts.com • AjaxAspNet.aspx

  7. AJAX Toolkit • Ajax Toolkit • Includes several prewritten AJAX & JavaScript scripts

  8. Summary • ASP.NET Ajax • Built into some controls • Sorting and paging • Update Panel will “Ajaxify” all controls • Ajax toolkit • Drag-and-drop AJAX controls • Benefit: • Convenience • Flexibility • Disadvantage: • Inefficient use of bandwidth (speed)

More Related