How to use
Data has been provided for your use with this sample. It can be found at
<Your ArcGIS Developer Kit Install directory>/Samples/data/GP/BufferTools, <Your ArcGIS Developer Kit Install directory>/Samples/data/California/CaliforniaProjected.mxd, <Your ArcGIS Developer Kit Install directory>/Samples/data/BloomfieldTownship/RoadCenterline_Locator and <Your ArcGIS Developer Kit Install directory>/Samples/data/USA/USA.mxd.
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 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. This folder contains the Common_ExtendTasks CSharp and VBNet folders.
- Open the folder of the language you are going to use (that is, CSharp or VBNet) and copy the Common_ExtendTasks_<language> folder to c:\inetpub\wwwroot. The <language> variable can be CSharp or VBNet.
- Start Visual Studio 2010 and open the Common_ExtendTasks_<language><vs_version> solution (for example, Common_ExtendTasks_CSharp2010.sln) located in c:\inetpub\wwwroot\Common_ExtendTasks_<language>. The <vs_version> references the Visual Studio version of the solution.
- In the Solution Explorer, display one of the Web pages illustrating the use of extended tasks, and configure the extended task appropriately.
- Right-click the Web page you have configured and select Set As Start Page.
At run time
- Start the Web application.
- On the FindAddressTaskWebSite.aspx page, type an address and execute the geocode operation. The symbology changes and limited fields are displayed for match candidates in the TaskResults control and MapTips callout.
- On the GPTaskWebSite.aspx page, add the required inputs and submit the job. Note the transparency of the feature results displayed in the map.
- On the QueryTaskWebSite.aspx page, enter query parameters and execute the query. Note the custom context menu on feature nodes in the TaskResults control. Also, one field contains hyperlink text that, when clicked, opens a new browser window and initiates a search on the clicked item.
- Execute the task again. A single set of selected feature is maintained in the TaskResults control.
Common_ExtendTasks_CSharp\App_Code\ExtendFindAddressTask.cs | Extended FindAddressTask. |
Common_ExtendTasks_CSharp\App_Code\ExtendGPTask.cs | Extended GPTask. |
Common_ExtendTasks_CSharp\App_Code\ExtendQueryTask.cs | Extended QueryAttributesTask. |
Common_ExtendTasks_CSharp\App_Code\Utility.cs | Shared utility methods. |
Common_ExtendTasks_CSharp\FindAddressTaskWebSite.aspx | Basic page contains extended FindAddressTask. |
Common_ExtendTasks_CSharp\FindAddressTaskWebSite.aspx.cs | Code behind. |
Common_ExtendTasks_CSharp\GPTaskWebSite.aspx | Basic page contains extended GPTask. |
Common_ExtendTasks_CSharp\GPTaskWebSite.aspx.cs | Code behind. |
Common_ExtendTasks_CSharp\QueryTaskWebSite.aspx | Basic page contains extended QueryAttributesTask. |
Common_ExtendTasks_CSharp\QueryTaskWebSite.aspx.cs | Code behind. |
Common_ExtendTasks_VBNet\App_Code\ExtendFindAddressTask.vb | Extended FindAddressTask. |
Common_ExtendTasks_VBNet\App_Code\ExtendGPTask.vb | Extended GPTask. |
Common_ExtendTasks_VBNet\App_Code\ExtendQueryTask.vb | Extended QueryAttributesTask. |
Common_ExtendTasks_VBNet\App_Code\Utility.vb | Shared utility methods. |
Common_ExtendTasks_VBNet\FindAddressTaskWebSite.aspx | Basic page contains extended FindAddressTask. |
Common_ExtendTasks_VBNet\FindAddressTaskWebSite.aspx.vb | Code behind. |
Common_ExtendTasks_VBNet\GPTaskWebSite.aspx | Basic page contains extended GPTask. |
Common_ExtendTasks_VBNet\GPTaskWebSite.aspx.vb | Code behind. |
Common_ExtendTasks_VBNet\QueryTaskWebSite.aspx | Basic page contains extended QueryAttributesTask. |
Common_ExtendTasks_VBNet\QueryTaskWebSite.aspx.vb | Code behind. |
Download the files for all languages