
LosFormatter | 663
UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
LiteralControl
System.Web.UI (system.web.dll)
disposable
class
The ASP.NET parser automatically creates LiteralControl instances for any text or HTML
it finds in a page that does not correspond to a server control, and then adds them to
the containing control’s Control.Controls collection. You should not confuse this class with
the System.Web.UI.WebControls.Literal control class, which can be used to add simple text to a
web page (much like an unformatted Label control).
Hierarchy
System.Object ➝ Control(System.ComponentModel.IComponent, System.IDisposable,
IParserAccessor, IDataBindingsAccessor)
➝ LiteralControl
Returned By
TemplateControl.CreateResourceBasedLiteralControl( )
LosFormatter
System.Web.UI (system.web.dll)
sealed class
This class is used by ASP.NET to implement Limited Object Serialization (LOS) for
view state. It converts the data stored in every control’s StateBag into a lightly encrypted,
condensed ASCII field that is added to the page as a hidden input control. While you
can store complex information in the StateBag, the LosFormatter is optimized for strings,
arrays, hashtables, and other primitive .NET types defined in the System namespace.
This class provides functionality through the methods Serialize( ) and Deserialize( ).
public class