
UserControl | 677
UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Triplet
System.Web.UI (system.web.dll)
class
This class is used internally for the LosFormatter. It contains three types that can be
combined and serialized into view state.
UserControl
System.Web.UI (system.web.dll)
disposable
class
This class represents a user control, or .ascx file, inside a Web Form. A user control
allows you to share commonly used portions of user interface. User controls are
similar to .aspx pages and can contain HTML, server controls, and event handling
logic. They are instantiated and cached in much the same way as Page objects and
contain many of the same properties. The difference is that user controls must be situ-
ated inside a Web Forms page. User controls should not be confused with custom web
controls, which you can create by inheriting from System.Web.UI.WebControls.WebControl.
When using fragment caching with user controls, remember that you will not be able
to modify any of the properties of the UserControl; the cached control will be loaded as
straight HTML rather than a UserControl object.
public class Triplet {
// Public Constructors
public Triplet();
public Triplet(object x, object y);
public Triplet(object x, object y, object z);
// Public Instance Fields
public object First;
public object Second;
public object Third;
}