
826
|
Chapter 42: The System.Web.UI.WebControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
about the selected ad, which can be modified or used to set corresponding properties
on other controls on the current page.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
WebControl(System.Web.UI.IAttributeAccessor) ➝ AdRotator
Returned By
System.Web.UI.MobileControls.AdRotator.CreateWebAdRotator( )
BaseCompareValidator
System.Web.UI.WebControls (system.web.dll)
disposable
abstract class
This abstract class provides basic functionality for the CompareValidator and RangeValidator
classes, which perform validation through comparisons. The shared (static) GetFullYear( )
method converts a two-digit year (like “98”) to a four-digit representation (”1998”),
while CutoffYear sets the maximum four-digit year value that it will allow to be repre-
sented in two digits. The shared CanConvert( ) method determines whether a string can be
converted to a given ValidationDataType, while the Type property sets the ValidationDataType that
the current instance of the control is validating text against.
public class AdRotator : WebControl {
// Public Constructors
public AdRotator();
// Public Instance Properties
public string AdvertisementFile ...