Customer Service | Training | Contact Us
You are here: Home > Downloads > ArcScripts > Search Results > Script Details Login | Feedback | Help

Available Map Services TreeView Control



contact author | download help | add bookmark | view bookmarks
Author Stan Harrison
File Name Services.zip
Language C#
Last Modified Feb 26 2007
Status of work Public Domain
Software ArcGIS Server
File Size 33.83 kb
Downloads 743

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
This is a custom control that will list all the map services on a given ArcGIS Server. It uses a TreeView control to display the services very similar to how they are seen in ArcCatalog. When a user selects a service, the control will remove all existing map resources from the MapResourceManager associated with the Map control. Then it will add the new service to the MapResourceManager.

The control is compiled into a DLL. All images for the TreeView are embedded in the DLL. Included is a sample asp.net page that demonstrates how to the use the control.

To use the control:
1) Copy the DLL to the bin directory of your project.
2) Register the control with your ASPX page.
<%@ Register Assembly="WorldViewSolutions.ArcGISServer.WebControls.Services" Namespace="WorldViewSolutions.ArcGISServer.WebControls.Services" TagPrefix="wvs" %>
3) Add the control tag to the page

One thing to note about the control, it does not use a postback or a callback. Instead it does a page redirect back to itself. This is done to simplify synchronizing the TOC and OverviewMap with the new service.