GeekArticles
Database
SQL Server
Database
SQL ServerBuilding Interactive User Interfaces with Microsoft ASP.NET AJAX: Triggering Full Page Postbacks Fr
<p>
The ASP.NET AJAX UpdatePanel provides a quick and easy way to implement a snappier, AJAX-based user interface in an ASP.NET WebForm. In a nutshell, Web controls within the
UpdatePanel that would normally cause a full page postback trigger a partial page postback, instead. For example, a Button Web control, when clicked, submits the form, causing
the browser to start a full page postback. However, if the Button control is within an UpdatePanel then the UpdatePanel short-circuits the full page postback and performs a
partial page postback, using JavaScript to make an request to the server. The server realizes that the request is a partial page postback (and not a full page postback)
and only returns the markup for the UpdatePanels on the page. When this response is returned to the browser, JavaScript code parses it and seamlessly updates the user interfaces
in the UpdatePanels. (For a more in-depth look at the UpdatePanel control, refer back to the <a the UpdatePanel</a>
installment in this article series.)
</p><p>
While we usually want controls within the UpdatePanel to perform a partial page postback, there are scenarios where we need a full page postback. ASP.NET AJAX allows us two
techniques for specifying that certain controls within the UpdatePanel should cause a full page postback. The simplest approach is to define the controls declaratively using
the Triggers collection. It is also possible to programmatically specify that a particular control should perform a full page postback, which is useful when
the control(s) that need to perform a full page postback are not created until runtime (such as the Buttons in a GridView).
</p><p>
This article looks at how to configure full page postbacks for particular controls within an UpdatePanel, exploring both the declarative and programmatic techniques. Read
on to learn more!
<br /><a More ></a></p>
Sponsored Links
Related Topics
Subscribe via RSS
SQL Server
- Naming Database Objects: Part II
- Trace Messages Part V: Trace Cleanup
- Naming Database Objects: Part I
- Multiple-Child Aggregation
- Creating SQL Tables for an Integrating Application Using Dexterity
- SQL Server 2005 Beta 2 Transact-SQL Enhancements
- .NET Rocks! - Brian Larson on SQL Server Reporting Services
- Computing the Trimmed Mean in SQL
- SQL Server 2000 Gains on Oracle
- Separator First Formatting (SFF)
