Topic Index
Microsoft has made available ASP.NET AJAX (previously referred to as Atlas) to provide a way for developers to implement Ajax-based applications within the Visual Studio 2005, .NET 2.0 design space.
In Microsoft's ASP.NET AJAX Overview, included are both client-side and server-side components which can update data on the web page without a complete reload of the page.
ASP.NET AJAX server controls produce both server and client code that integrates together to produce rich client behavior. When you add an AJAX control to an ASP.NET Web page, the page automatically sends supporting client script to the browser for AJAX functionality. You can provide additional client code to customize the functionality of a control, but this is not required.
The following list describes the most frequently used ASP.NET AJAX server controls.
Microsoft's MSDN site has a Sample AJAX Application we can use to become familiar with ASP.NET Ajax server controls
Day 19
ScriptManager control to the page
UpdatePanel underneath the ScriptManager
ContentTemplate to hold the panel's content
GridView contro inside the ContentTemplate
The UpdateProgress control displays a status message while new content for an UpdatePanel control is being requested.
UpdateProgress control underneath the UpdatePanel
AssociatedUpdatePanelId to UpdatePanel1
ProgressTemplate inside the UpdateProgress control
The updating of the GridView is being done asynchronously, but it is hard to tell as we only have one user-initiated event on the page. To use multiple UpdatePanels on a page with Partial Page Rendoring, add the attribute EnablePartialRendering="true" to the asp:ScriptManager control
EnablePartialRendering attribute to "true" in the asp:ScriptManager control
Triggers allow us to associate an event with an UpdatePanel
The ASP.NET AJAX Timer control performs postbacks at defined intervals. If you use the Timer control with an UpdatePanel control, you can enable partial-page updates at a defined interval. You can also use the Timer control to post the whole page.
Page last modified on April 28, 2008, at 07:23 AM