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 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. This folder contains the Common_ExtendTasks CSharp and VBNet folders.
- Open the folder of the language you're going to use—CSharp or VBNet—and copy the Common_ExtendTasks_<language> folder to c:\inetpub\wwwroot. The <language> variable can be either CSharp or VBNet.
- Start Microsoft Visual Studio 2008 and open the Common_ExtendTasks_<language><vs_version> solution (for example, Common_ExtendTasks_CSharp2008.sln) located in c:\inetpub\wwwroot\Common_ExtendTasks_<language>. The <vs_version> references the Visual Studio version of the solution, 2008 or 2010.
- In 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've configured and select Set As Start Page.
At run time
- Start the Web application.
- In FindAddressTaskWebSite.aspx, type in 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.
- In GPTaskWebSite.aspx, add the required inputs and submit the job. Note the transparency of the feature results displayed in the map.
- In QueryTaskWebSite.aspx, 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 which, 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