ESRI.ArcGIS.ADF.Web.UI.WebControls
WhereClause Property
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > MapTips Class : WhereClause Property




The where clause defining the features for which map tips are shown.

Syntax

Visual Basic (Declaration) 
<PersistenceModeAttribute(PersistenceMode.Attribute)>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
<ResCategoryAttribute("MapTips")>
<ResDescriptionAttribute("The where clause defining the features for which map tips are shown.")>
<BrowsableAttribute(True)>
Public Property WhereClause As String
Visual Basic (Usage)Copy Code
Dim instance As MapTips
Dim value As String
 
instance.WhereClause = value
 
value = instance.WhereClause
C# 
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[ResCategoryAttribute("MapTips")]
[ResDescriptionAttribute("The where clause defining the features for which map tips are shown.")]
[BrowsableAttribute(true)]
public string WhereClause {get; set;}

Property Value

Where clause filter to use for features in the maptips layer.

Remarks

If this property is not set, all features within the current map extent will display map tips (up to the limit set in FeatureLimit).

Set this property to limit maptips to features that match the where clause filter. Be careful that the where clause is valid for the layer. If not valid, no error will occur, but no maptips will be displayed. The where clause must be a standard query, and fields must be present in the layer. Values are case sensitive. Some examples of where clauses:

  • POPULATION > 10000
  • CAPITAL = 'Y'
  • NAME like 'A%'

The final example displays only features whose NAME field begins with the upper-case letter A.

One way to create a valid where clause is to add (at least temporarily) a QueryAttributesTask to the page, and to use its query-builder utility to construct the where clause.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.