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 Developer Kit install location>\Samples\ServerNET\Common_SimpleUserControlTask.
- Open the folder of the language you're going to use—CSharp or VBNet—and copy the Common_SimpleUserControlTask _<language> folder to c:\inetpub\wwwroot. The <language> variable can be either CSharp or VBNet.
- Start Microsoft Visual Studio 2008 or 2010 and open the Common_SimpleUserControlTask _<language><vs_version> solution (for example, Common_SimpleUserControlTask _CSharp2008.sln) located in c:\inetpub\wwwroot\Common_SimpleUserControlTask _<language>. The <vs_version> references the Visual Studio version of the solution, 2008 or 2010.
- In Solution Explorer, navigate to the UserControlTasks folder, and open either User control in Design view. A visual interface for dragging-and-dropping and positioning controls is available.
At run time
- Start the Web application.
- In the User control, enter a value in the text box and click the Execute button. The value entered in the text box displays in the TaskResults control with default context menus.
Common_SimpleUserControlTask_CSharp\UserControlConfigurators\SimpleTaskWebConfig\SimpleTaskWebConfigurator.ascx | Markup for web user control to allow task configuration via ArcGIS Server Manager |
Common_SimpleUserControlTask_CSharp\UserControlConfigurators\SimpleTaskWebConfig\SimpleTaskWebConfigurator.ascx.cs | Implementable code for user control task configurator. |
Common_SimpleUserControlTask_CSharp\UserControlTasks\SimpleTask\SimpleTask.ascx | Markup for a User control task. |
Common_SimpleUserControlTask_CSharp\UserControlTasks\SimpleTask\SimpleTask.ascx.cs | Implementation code for the User control task. |
Common_SimpleUserControlTask_CSharp\Default.aspx | Markup for the default web page containing usercontroltask web control. |
Common_SimpleUserControlTask_CSharp\Default.aspx.cs | Code behind for default.aspx |
Common_SimpleUserControlTask_VBNet\UserControlConfigurators\SimpleTaskWebConfig\SimpleTaskWebConfigurator.ascx | Markup for web user control to allow task configuration via ArcGIS Server Manager |
Common_SimpleUserControlTask_VBNET\UserControlConfigurators\SimpleTaskWebConfig\SimpleTaskWebConfigurator.ascx.vb | Implementable code for user control task configurator. |
Common_SimpleUserControlTask_VBNET\UserControlTasks\SimpleTask\SimpleTask.ascx | Markup for a User control task. |
Common_SimpleUserControlTask_VBNET\UserControlTasks\SimpleTask\SimpleTask.ascx.vb | Implementation code for the User control task. |
Common_SimpleUserControlTask_VBNET\Default.aspx | Markup for the default web page containing usercontroltask web control. |
Common_SimpleUserControlTask_VBNET\Default.aspx.vb | Code behind for default.aspx |
Download the files for all languages