www.pudn.com > ExportLegend.rar > Default.aspx, change:2008-10-04,size:1948b


<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=9.2.0.1324, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" 
    Namespace="ESRI.ArcGIS.ADF.Web.UI.WebControls" TagPrefix="esri" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <esri:Map ID="Map1" runat="server" Height="398px" MapResourceManager="MapResourceManager1" 
            Width="468px"> 
        </esri:Map> 
        <img id="legend" style="left: 487px; width: 200px; position: absolute; 
            top: 16px;" height="200" /> 
     
    </div> 
        <esri:MapResourceManager ID="MapResourceManager1" runat="server"> 
            <ResourceItems> 
                <esri:MapResourceItem Definition="<Definition DataSourceDefinition="localhost" DataSourceType="ArcGIS Server Local" Identity="To set, right-click project and 'Add ArcGIS Identity'" ResourceDefinition="(default)@NorthAmericaMap" DataSourceShared="True" />" 
                    DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=100:width=100:dpi=96:color=:transbg=False:displayInToc=True" 
                    Name="NorthAmericaMap" /> 
            </ResourceItems> 
        </esri:MapResourceManager> 
          
    </form> 
</body> 
</html> 
<script type="text/javascript" language="javascript"> 
    function window.onload() 
    {         
        GetLegend(); 
    }         
     
    function GetLegend() 
    { 
        var message = 'ActiveType=GetLegend'; 
        var context = 'Page1'; 
        <%=getLegendCallBack%>     
    } 
</script>