AJAX Pattern: Text Message
 |
Messages between browser and server are formatted as simple text strings.
Frequency of use:
medium low
|
|
 |
This is an easy-to-understand message format: a plain-text string.
There are many situations for which plain text is sufficient, for example, when
sending a user id, a user name, or a description of some sort. For more complex data,
such as tabular or hierarchical data, a better alternative would be XML or JSON formatted
messages.
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 description
is returned in plain text. No formatting takes place on the browser and
the text is displayed as is.
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.