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.
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 applicable language, that is, CSharp or VBNet. Copy the folder, ADFTutorials_<language>, to c:\inetpub\wwwroot. The <language> variable can be CSharp or VBNet.
- To start the IIS Manager, click Start, Control Panel, Administrative Tools, Internet Information Services (IIS) Manager or Internet Information Services.
- On the console tree view on the left, click Local Computer, Web Sites, and Default Web Site.
- Open the ADFTutorials_<language> folder, then open the applicable tutorial folder. In the selected tutorial, 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 close the Properties dialog box.
- Start Visual Studio 2010 and open the solution located in the c:\inetpub\wwwroot\ADFTutorials_CSharp folder.
- In the Solution Explorer, right-click the Web site under the applicable tutorial and select Set as StartUp Project. Also, right-click the page you want 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 for Server, see "About publishing GIS resources to the server" in the ArcGIS for Server Help system.
- Click the Debug menu and choose Start.
Run time
- Browse to the viewer's uniform resource locator (URL), for example, http://localhost/ADFTutorials_VBNet/ADFWebControls/.
- For the page in the ADFWebControls—Interact with the map. Use the toolbar items. Change layer visibility in the Toc.
- For the page in the UsingCommonAPI—Use drop-down lists to select the active resource and layer. Use the custom tool to select features in the map. Show the selection in the TaskResults.
- For the page in AccessArcGISServer—Apply the custom tool in the map to add a point and buffer around the point as graphics. Graphics are added to the custom graphics element array for a MapDescription.
- For the page in AccessArcIMS—Apply the custom tool in the map to add a point as graphics in an acetate layer.
- For the page in ScriptableControl—Hover the cursor over the map and note the changes in the coordinate display of the scriptable control.
ADFTutorials_CSharp\AccessArcGISServer\Default.aspx.cs | ArcGIS for Server tutorial demo. |
ADFTutorials_CSharp\AccessArcGISServer\App_Code\PointBufferTool.cs | The code behind the user interface (UI). |
ADFTutorials_CSharp\AccessArcIMS\Default.aspx.cs | ArcIMS tutorial demo. |
ADFTutorials_CSharp\AccessArcIMS\App_Code\PointTool.cs | The code behind the UI. |
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 UI. |
ADFTutorials_VBNet\AccessArcGISServer\Default.aspx.vb | ArcGIS for Server tutorial demo. |
ADFTutorials_VBNet\AccessArcGISServer\App_Code\PointBufferTool.vb | The code behind the user interface (UI). |
ADFTutorials_VBNet\AccessArcIMS\Default.aspx.vb | ArcIMS tutorial demo. |
ADFTutorials_VBNet\AccessArcIMS\App_Code\PointTool.vb | The code behind the UI. |
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 UI. |
Download the files for all languages