DeviceSpecific::SelectedChoice Property

 

Gets the currently selected choice, or null if none are applicable. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public:
[BrowsableAttribute(false)]
property DeviceSpecificChoice^ SelectedChoice {
	DeviceSpecificChoice^ get();
}

Property Value

Type: System.Web.UI.MobileControls::DeviceSpecificChoice^

The currently selected choice.

You can use a DeviceSpecific/Choice construct to specify device-specific content, such as property overrides or templates, for a control or style. To select a choice from the choices in a <DeviceSpecific> element, ASP.NET evaluates each choice in sequential order against the capabilities of the target device. The first matching choice is made the selected choice, and is used for device-specific content.

The following code example demonstrates how to use the SelectedChoice property to display the filter associated with the current choice. For a more complete code sample, see the example for the DeviceSpecific overview.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

DeviceSpecific Class
System.Web.UI.MobileControls Namespace
<DeviceSpecific> Element
<Choice> Element
Introduction to the DeviceSpecific Control

Return to top
Show: