Common MapTips
Common_MapTips_CSharp\ConditionalFormatting.aspx.cs
// Copyright 2010 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 

public partial class ConditionalFormatting : System.Web.UI.Page 
{
    protected void Page_Load(object sender, System.EventArgs e)
    {
        // Here we specify the MapTips content to contain one row that displays the population
        // density field
        MapTips1.LayerFormat.Contents = @"
            <table cellpadding='3px'>
                <tr>
                    <td>Population Density:</td>
                    <td>{POP00_SQMI}</td>
                </tr>
            </table>";


    }

    // Expose the AJAX component ID of the MapTips graphic feature group to the client
    public string MapTipsGraphicsLayerID { get { return MapTips1.GraphicsLayerClientID; } }
}