ObjectList::CommandStyle Property
Gets or sets the style used for the object list commands. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
Property Value
Type: System.Web.UI.MobileControls::Style^The style used for the object list commands.
If this property is programmatically set, it is not persisted unless the property is set dynamically on each request. If the property is set declaratively, the property is set on each request. There is no default.
Since different devices have different requirements for styles. You may want several DeviceSpecific settings for the CommandStyle property.
The following code example demonstrates how to the use the CommandStyle property to set the style of an ObjectList using a declarative DeviceSpecific section to specify different CommandStyle settings for different devices.
Note |
|---|
The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information, see ASP.NET Web Forms Page Code Model. |
This is a sample Web.config file with several device specific filters.
Available since 1.1
ObjectListCommand
ObjectList Class
System.Web.UI.MobileControls Namespace
Creating Custom Mobile Controls
Introduction to the ObjectList Control
