How to use
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
At design time
- Verify that the Web ADF for the .NET Framework is installed and functioning properly. For information on installing and configuring the Web ADF, consult the installation guide.
- In Windows Explorer, navigate to <ArcGIS install location>\DeveloperKit10.0\Samples\ServerNet\ADFTutorials. You should see a CSharp and VBNet folder.
- In Windows Explorer, open the directory referencing the language of your choice: CSharp or VBNet. Copy the folder, ADFTutorials_<language>, to c:\inetpub\wwwroot. The <language> variable may be either CSharp or VBNet.
- Open the IIS Manager from Control Panel > Administrative Tools > Internet Information Services (IIS) Manager or Internet Information Services.
- In the console tree view on the left, navigate to Local Computer > Web Sites > Default Web Site.
- Open the ADFTutorials_<language> folder, and open the tutorial folder of your choice. In the tutorial selected, select the Web site folder and click Properties.
- On the Directory tab, click the Create button in the Application Settings section of this panel. Click OK to dismiss the Properties dialog.
- Open the solution for the version of the Visual Studio you are using(2008 or 2010) . The Visual Studio version is appended to the solution file name. For example, the Visual Studio 2008 solution file for the ADFTutorials_CSharp sample is ADFTutorialss_CSharp2008.sln and located in the c:\inetpub\wwwroot\ADFTutorials_CSharp folder.
- In the Solution Explorer, right-click the Web site under the tutorial of interest and select 'Set as StartUp Project'. Also, right-click the page you wish to view and select 'Set As Start Page'.
- The pages in this sample are configured to use data hosted online or included with the SDK. You can create services from SDK data by publishing the map documents located at <ArcGIS install location>\DeveloperKit10.0\Samples\data. For instructions on how to publish a map document to ArcGIS Server, refer to the help topic "Publishing a GIS resource to the server" in the ArcGIS Server Help.
- Click the "Debug" drop-down menu and choose "Start".
At run time
- Browse to viewer's URL (for example, http://localhost/ADFTutorials_VBNet/ADFWebControls/).
- The page in ADFWebControls: Interact with the map. Use the toolbar items. Change layer visibility in the Toc.
- The page in UsingCommonAPI: Use drop down lists to select active resource and layer. Use custom tool to select features in the map. Show selection in TaskResults.
- The page in AccessArcGISServer: Apply the custom tool in the map to add a point and a buffer around the point as graphics. Graphics are added to the custom graphics element array for a MapDescription.
- The page in AccessArcIMS: Apply the custom tool in the map to add a point as graphics in an acetate layer.
- The page in ScriptableControl: Move the mouse cursor over the map and note the changes in the coordinate display of the scriptable control.
ADFTutorials_CSharp\AccessArcGISServer\Default.aspx.cs | ArcGIS Server tutorial demo. |
ADFTutorials_CSharp\AccessArcGISServer\App_Code\PointBufferTool.cs | The code behind the user interface |
ADFTutorials_CSharp\AccessArcIMS\Default.aspx.cs | ArcIMS tutorial demo. |
ADFTutorials_CSharp\AccessArcIMS\App_Code\PointTool.cs | The code behind the user interface |
ADFTutorials_CSharp\ADFWebControls\Default.aspx.cs | ADF control demo. |
ADFTutorials_CSharp\ScriptableControls\MapCoordinateDisplayWebSite\Default.aspx.cs | Scriptable control demo. |
ADFTutorials_CSharp\ScriptableControls\MapCoordinateDisplay\Properties\AssemblyInfo.cs | Scriptable control demo. |
ADFTutorials_CSharp\ScriptableControls\MapCoordinateDisplay\MapCoordinateDisplay.cs | Scriptable control demo. |
ADFTutorials_CSharp\ScriptableControls\MapCoordinateDisplay\javascript\MapCoordinateDisplay.js | Scriptable control demo. |
ADFTutorials_CSharp\UsingCommonAPI\Default.aspx.cs | Common API demo. |
ADFTutorials_CSharp\UsingCommonAPI\App_Code\SelectTool.cs | The code behind the user interface |
ADFTutorials_VBNet\AccessArcGISServer\Default.aspx.vb | ArcGIS Server tutorial demo. |
ADFTutorials_VBNet\AccessArcGISServer\App_Code\PointBufferTool.vb | The code behind the user interface |
ADFTutorials_VBNet\AccessArcIMS\Default.aspx.vb | ArcIMS tutorial demo. |
ADFTutorials_VBNet\AccessArcIMS\App_Code\PointTool.vb | The code behind the user interface |
ADFTutorials_VBNet\ADFWebControls\Default.aspx.vb | ADF control demo. |
ADFTutorials_VBNet\ScriptableControls\MapCoordinateDisplayWebSite\Default.aspx.vb | Scriptable control demo. |
ADFTutorials_VBNet\ScriptableControls\MapCoordinateDisplay\Properties\AssemblyInfo.vb | Scriptable control demo. |
ADFTutorials_VBNet\ScriptableControls\MapCoordinateDisplay\MapCoordinateDisplay.vb | Scriptable control demo. |
ADFTutorials_VBNet\ScriptableControls\MapCoordinateDisplay\javascript\MapCoordinateDisplay.js | Scriptable control demo. |
ADFTutorials_VBNet\UsingCommonAPI\Default.aspx.vb | Common API demo. |
ADFTutorials_VBNet\UsingCommonAPI\App_Code\SelectTool.vb | The code behind the user interface |
Download the files for all languages