AJAX Pattern: Html Message
 |
Messages between browser and server contain HTML fragments.
Frequency of use:
medium high
|
|
 |
In this pattern the server responds to a client request by creating
and returning an HTML fragment. The browser will embed this fragment
directly into the page using an innerHTML property.
All subsequent page formatting is handled by the browser itself and
no additional client code is required.
HTML fragments can be small, large, simple, or complex.
A common scenario is for the server to return comprehensive
HTML formatted reports
that are built with HTML tables, attributes, CSS tags, and more.
In this example the user selects from a list of technologies and the browser
sends a request to the server for details on the selected technology. A response
is returned as a formatted HTML fragment. The HTML formatting is fairly simple and
includes italic text, bold text, colored text, and background colors.
Example: .NET Technologies
LINQ
C# 3.0
VB.NET 9.0
ADO.NET 3.0
LINQ represents a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations. It extends C# and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities.
Click here to view the source code.