Defining Device Filters
Use Visual Studio to define device filters. After the filter is defined, your application can apply it to one or more controls. The following steps explain how to declare the device filters that are stored in the Web.config file. (Delegate-based device filters that use a method defined in the code of an ASP.NET mobile Web page are not declared in the application's Web.config file.)
To define a device filter
Select the control to which the filter will be applied.
In the Properties window, click the ellipsis button () in the AppliedDeviceFilters box.
The Applied Device Filters Dialog Box is displayed.
The Device Filter Editor dialog box is displayed.
Create a new device filter by doing the following:
Click New Device Filter.
Enter the name for the new filter. Filter names are case sensitive.
Select a Typeoption (for example, Equality Comparison) and specify values for the Compare and Argument text boxes. For more information about the Type option, see the Device-Specific Rendering topic.
Use the arrow buttons to specify the order in which the device filters are saved in the Web.config file.
Because these changes are saved in the Web.config file, they affect every page in your project. The order in which the filters appear in the Web.config file has no effect on functionality.