ASP.NET AJAX Framework Server Client Side Components Script Libraries AJAX jQuery Control Library Toolkit
Server Components • Script Support • Localization • Web Services • Application Services • Server Controls
Server Controls• ScriptManager• UpdatePanel• Control Extenders
Server Controls• ScriptManager • Manages ASP.NET AJAX script libraries and script files, partial-page rendering, and client proxy class generation for Web and application services. • The control manages all ASP.NET AJAX resources on a page• UpdatePanel • Enables sections of a page to be partially rendered without a postback. • They are used with the ScriptManager control to enable partial-page rendering.
Demo 1 : Server Controls Demo Contents Use of ScriptManager, UpdatePanel Changes in Source Code (with AJAX) UpdateProgress
Partial-page rendering overview - ScriptManager server control - PageRequestManager class @ Clientwith an asynchronous postback, page updates are limited to regions of the page thatare enclosed in UpdatePanel controls and that are marked to be updated. The serversends HTML markup for only the affected elements to the browser. In the browser, theclient PageRequestManager class performs Document Object Model (DOM)manipulation to replace existing HTML with updated markup.
Partial Page UpdateUpdatePanel (atleast 1 per page) markup-enabled code-only public code markup properties properties methods descendants ChildrenAsTriggers IsInPartialRendering Update() <ContentTemplate> UpdateMode ContentTemplate <Triggers> RenderMode ContentTemplateContainer <asp:AsyncPostBackTrigger> Triggers <asp:PostbackTrigger> Note: ChildrenAsTriggers cannot be set to false when UpdateMode is set to Always
Partial Page Update• Advantages – the state of your multimedia is unchanged, – bandwidth costs are reduced – the client does not experience the flicker usually associated with a postback.
jQuery Open Source JS Library Cross-Browser Compatible Will be Included with MS VS 2010 Currently comes as-is With ASP.NET MVC Installer Microsoft will support using Product Support Services MS will add Intellisense for jQuery MS will actively update jQuery