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 are going to use (that is, CSharp or VBNet) and copy the Common_SimpleUserControlTask _<language> folder to c:\inetpub\wwwroot. The <language> variable can be CSharp or VBNet.
- Start Visual Studio 2010 and open the Common_SimpleUserControlTask _<language><vs_version> solution (for example, Common_SimpleUserControlTask _CSharp2010.sln) located in c:\inetpub\wwwroot\Common_SimpleUserControlTask _<language>.
- In the 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, add a value in the text box and click the Execute button. The added value shows in the TaskResults control with default context menus.
SimpleUserControlTask_CSharp\Configurators\SimpleTaskWebConfig\TaskWebConfigurator.ascx | Markup for a Web User control to allow task configuration via ArcGIS Server Manager. |
SimpleUserControlTask_CSharp\Configurators\SimpleTaskWebConfig\TaskWebConfigurator.ascx.cs | Implementation code for User control task configurator. |
SimpleUserControlTask_CSharp\UserControlTasks\SimpleTask\SimpleTask.ascx | Markup for a User control task. |
SimpleUserControlTask_CSharp\UserControlTasks\SimpleTask\SimpleTask.ascx.cs | Implementation code for the User control task. |
SimpleUserControlTask_CSharp\Default.aspx | Markup for the default Web page containing the UserControlTask Web control. |
SimpleUserControlTask_CSharp\Default.aspx.cs | Code behind for default.aspx. |
SimpleUserControlTask_VBNet\Configurators\SimpleTaskWebConfig\TaskWebConfigurator.ascx | Markup for a Web user control to allow task configuration via ArcGIS Server Manager. |
SimpleUserControlTask_VBNet\Configurators\SimpleTaskWebConfig\TaskWebConfigurator.ascx.vb | Implementation code for User control task configurator. |
SimpleUserControlTask_VBNET\UserControlTasks\SimpleTask\SimpleTask.ascx | Markup for a User control task. |
SimpleUserControlTask_VBNET\UserControlTasks\SimpleTask\SimpleTask.ascx.vb | Implementation code for the User control task. |
SimpleUserControlTask_VBNET\Default.aspx | Markup for the default Web page containing the UserControlTask Web control. |
SimpleUserControlTask_VBNET\Default.aspx.vb | Code behind for default.aspx. |
Download the files for all languages