
ITemplate | 661
UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
field on a Web Forms page, so it can be maintained across postbacks. State manage-
ment is built into the Control class, and you can write values into the Control.ViewState
collection to store any information you need without using IStateManager. However, you
can also create a custom control that implements this interface to customize how state
management works. The IStateManager consists of three methods: SaveViewState( ), which
stores changes to an object, LoadViewState( ), which retrieves and applies previously
stored values, and TrackViewState( ), which sets the IsTrackingViewState property to True and
instructs ASP.NET to track changes to the control’s view state.
Implemented By
Multiple types
ITagNameToTypeMapper
System.Web.UI (system.web.dll)
interface
This interface consists of a single method GetControlType( ), which accepts a string
containing a control tag and returns a System.Type object identifying the corresponding
control class.
ITemplate
System.Web.UI (system.web.dll)
interface
Templates allow controls to make portions of their user interface configurable.
Templates are used in classes like System.Web.UI.WebControls.DataList and can be added in
your own custom controls by declaring properties of type ITemplate (for example, an
ItemStyle or HeaderStyle ...