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

Sample AJAX TOC



contact author | download help | add bookmark | view bookmarks
Author Hussein Nasser
File Name Sample_Code.zip
Language VB.net
Last Modified Feb 21 2007
Status of work Public Domain
Software ArcGIS Server
File Size 29.7 kb
Downloads 1688

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
Using ArcGIS server, we have developed an entire system using AJAX technology. Since ArcGIS server web contents refershes the whole page whenever any action is taken. We have developed from scratch all tools (zoomin, zoom out, identify and other functions using simple HTML /Javascripts controls only)


The most difficult part was the creating of the TOC using Ajax.

This project contains a sample code of how to generate the table of content with the symbols in HTML format



To run the project you need to set impersonation in the Web.config


hhhh = hostname
xxxx = username
pppp = password

example



in the QueryAjax.aspx

you have to set the following variables

'------------ Here you put your parameters to create the map ---------------
Private Const m_sServerName As String = "master"
Private Const m_sServerObject As String = "allds"
Private Const m_sDataFrame As String = "layers"





This sample code is being written by :
Hussein AlSayegh
EDN:
M.Hussein