⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default.aspx

📁 arcgis server 相关开发,将地图文件输出功能
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=9.2.3.1380, 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>Export Image</title>
    
     <script>
        function Open(path ,title)
        {
        
        var Pathfull = path;
        mywindow  = window.open(Pathfull,title,'location=1,status=1,scrollbars=1,width=300,height=300,resizable=1');
        
       

        }
    </script>
    
</head>
<body>
    <form id="form1" runat="server">
  <div>
        <esri:Toolbar ID="Toolbar1" runat="server" BuddyControlType="Map" Group="Toolbar1_Group"
            Height="92px" ToolbarItemDefaultStyle-BackColor="White" ToolbarItemDefaultStyle-Font-Names="Arial"
            ToolbarItemDefaultStyle-Font-Size="Smaller" ToolbarItemDisabledStyle-BackColor="White"
            ToolbarItemDisabledStyle-Font-Names="Arial" ToolbarItemDisabledStyle-Font-Size="Smaller"
            ToolbarItemDisabledStyle-ForeColor="Gray" ToolbarItemHoverStyle-BackColor="White"
            ToolbarItemHoverStyle-Font-Bold="True" ToolbarItemHoverStyle-Font-Italic="True"
            ToolbarItemHoverStyle-Font-Names="Arial" ToolbarItemHoverStyle-Font-Size="Smaller"
            ToolbarItemSelectedStyle-BackColor="White" ToolbarItemSelectedStyle-Font-Bold="True"
            ToolbarItemSelectedStyle-Font-Names="Arial" ToolbarItemSelectedStyle-Font-Size="Smaller"
            WebResourceLocation="/aspnet_client/ESRI/WebADF/" Width="400px" style="left: 325px; position: absolute; top: 10px">
            <ToolbarItems>
                <esri:Tool ClientAction="DragRectangle" DefaultImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/zoomin.GIF"
                    HoverImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/zoominU.gif" JavaScriptFile=""
                    Name="MapZoomIn" SelectedImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/zoominD.gif"
                    ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapZoomIn"
                    Text="Zoom In" ToolTip="Zoom In" />
                <esri:Tool ClientAction="DragRectangle" DefaultImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/zoomout.GIF"
                    HoverImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/zoomoutU.gif" JavaScriptFile=""
                    Name="MapZoomOut" SelectedImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/zoomoutD.gif"
                    ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapZoomOut"
                    Text="Zoom Out" ToolTip="Zoom Out" />
                <esri:Tool ClientAction="DragImage" DefaultImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/pan.gif"
                    HoverImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/panU.gif" JavaScriptFile=""
                    Name="MapPan" SelectedImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/panD.gif"
                    ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapPan"
                    Text="Pan" ToolTip="Pan" />
                <esri:Command ClientAction="" DefaultImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/fullext.gif"
                    HoverImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/fullextU.gif" JavaScriptFile=""
                    Name="MapFullExtent" SelectedImage="/aspnet_client/ESRI/WebADF/Toolbar/ArcGIS/Images/fullextD.gif"
                    ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapFullExtent"
                    Text="Full Extent" ToolTip="Full Extent" />
            </ToolbarItems>
            <BuddyControls>
                <esri:BuddyControl Name="MyMap" />
            </BuddyControls>
        </esri:Toolbar>
        <esri:MapResourceManager ID="MapResourceManager1" runat="server" style="left: 8px; position: absolute; top: 24px">
            <ResourceItems>
                <esri:MapResourceItem Definition="&lt;Definition DataSourceDefinition=&quot;&quot; DataSourceType=&quot;ArcGIS Server Internet&quot; Identity=&quot;&quot; ResourceDefinition=&quot;&quot; DataSourceShared=&quot;True&quot; /&gt;"
                    DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=100:width=100:dpi=96:color=:transbg=False:displayInToc=True"
                    Name="MapResourceItem0" />
            </ResourceItems>
        </esri:MapResourceManager>
    
    </div>
        &nbsp;&nbsp;
        
        <esri:FloatingPanel ID="TOCPanel" runat="server" BackColor="White" BorderColor="Gray"
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
            Height="315px" Style="left: 10px; position: absolute; top: 100px" Title="Table Of Contents"
            TitleBarColor="Coral" TitleBarHeight="20px"
            Transparency="35" Width="250px" CloseButton="False" Draggable="False" HeightResizable="False" WidthResizable="False">
            <esri:Toc ID="Toc1" runat="server" BuddyControl="MyMap" Height="300px" Width="235px" />
        </esri:FloatingPanel>
        &nbsp;
        <br />
        <esri:FloatingPanel ID="MapPanel" runat="server" BackColor="White" BorderColor="Gray"
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
            Height="507px" Title="Map Viewer" TitleBarColor="WhiteSmoke" TitleBarHeight="20px" Transparency="35" Width="500px" style="left: 275px; position: absolute; top: 100px" CloseButton="False" Draggable="False" HeightResizable="False" WidthResizable="False">
            <esri:Map ID="Map1" runat="server" BorderColor="Black" BorderStyle="Solid" Height="500px"
                MapResourceManager="MapResourceManager1" Width="500px" PrimaryMapResource="MapResourceItem0" ImageFormat="PNG24">
            </esri:Map>
            &nbsp;
        </esri:FloatingPanel>
        &nbsp;
        <esri:FloatingPanel ID="ExportFloatingPanel" runat="server" BackColor="White" BorderColor="Black"
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
            Height="110px" Style="left: 10px; position: absolute; top: 460px" Title="Save Export"
            TitleBarColor="SkyBlue" TitleBarHeight="20px" Transparency="35" Width="250px"
            WidthResizable="False" CloseButton="False" Draggable="False" HeightResizable="False">
              <asp:Label ID="Label2" runat="server" Text="Title"></asp:Label><asp:TextBox ID="ExportTitle" runat="server">Title</asp:TextBox><br />
                                                    <br />
                                                    <asp:Label ID="ExportTypeLabel" runat="server" Text="Export Type"></asp:Label>
                                                    <asp:DropDownList ID="ExportType" runat="server" Width="82px">
                                                        <asp:ListItem Value="0">BMP</asp:ListItem>
                                                        <asp:ListItem Value="10">GIF</asp:ListItem>
                                                        <asp:ListItem Value="1">JPG</asp:ListItem>
                                                        <asp:ListItem Selected="True" Value="8">PDF</asp:ListItem>
                                                        <asp:ListItem Value="4">PNG</asp:ListItem>
                                                        <asp:ListItem Value="5">PNG24</asp:ListItem>
                                                        <asp:ListItem Value="3">TIFF</asp:ListItem>
                                                        <asp:ListItem Value="2">DIB</asp:ListItem>
                                                        <asp:ListItem Value="12">SVGZ</asp:ListItem>
                                                        <asp:ListItem Value="11">SVG</asp:ListItem>
                                                        <asp:ListItem Value="7">PS</asp:ListItem>
                                                        <asp:ListItem Value="6">EMF</asp:ListItem>
                                                        <asp:ListItem Value="9">AI</asp:ListItem>
                                                    </asp:DropDownList><br />
                                                    <asp:Label ID="Label1" runat="server" Text="Resulution"></asp:Label>
                                                    <asp:TextBox ID="txtDpi" runat="server"></asp:TextBox>
                                                    <br/>
                                                
                                                <asp:Button ID="PDF_BUTTON" runat="server" Text="Export as Image" OnClick="PDF_BUTTON_Click"/>
                                                </esri:FloatingPanel>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -