DeviceSpecific Class
Provides a construct for specifying a choice among multiple content alternatives in the <DeviceSpecific> element.
public class System.Web.UI.MobileControls.DeviceSpecific :
System.Web.UI.Control
Remarks
Within a <DeviceSpecific> element, you typically specify one or more <Choice> elements, each containing attributes that specify how to evaluate the choice against target device capabilities. At run time, each choice is evaluated in order, and the first choice that is successfully evaluated is used.
The DeviceSpecific/Choice construct is used to specify template sets and override properties; for example, it can be used to specify device-specific images for the image control.
Note Even though the DeviceSpecific class inherits from the Web Forms System.Web.UI.Control namespace, this is only an implementation detail. <DeviceSpecific> elements do not behave like controls.
Requirements
Namespace: System.Mobile.Web.UI.MobileControls
Assembly: System.Web.Mobile
See Also
Choices Property