
DeviceSpecificChoice | 745
MobileControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
DeviceSpecific
Returned By
MobileControl.DeviceSpecific, Style.DeviceSpecific
Passed To
MobileControl.DeviceSpecific, Style.DeviceSpecific
DeviceSpecificChoice
System.Web.UI.MobileControls (system.web.mobile.dll)
.NET 1.1
class
This class represents the <Choice> element in a .aspx file. Each <Choice> element repre-
sents a distinct condition (typically corresponding to a different type of client device or
set of client device abilities). When the page is loaded at run time, the first matching
choice is used. For example, you might create a <Choice> element that specifies a Filter
string “WML”, which matches an entry in the <deviceFilters> section of the machine.config
file. The settings in this choice will only be used if the target device supports WML (and
hasn’t matched any previous choice conditions).
Returned By
DeviceSpecific.SelectedChoice, DeviceSpecificChoiceCollection.this
Passed To
DeviceSpecificChoiceCollection.{Add( ), AddAt( ), Remove( )}
public bool HasTemplates{get; }
public MobilePage MobilePage{get; }
public object Owner{get; }
public DeviceSpecificChoice ...