Hands On how the sample works. 5. Leave the live sample open. Copy the Application Source Code The Default Editor widget lets you create and edit features. It includes a Template Picker, an Attribute Inspector, and an Attachment Editor. In these next steps, you’ll steal the code for the entire sample so that you can incorporate those functional components into a VGI site hosted on your machine. 1. First, create a folder called MyVGI under the root of your Web server (i.e., C:\inetpub\wwwroot\MyVGI). 2. Next, in the browser containing the live sample for the Default Editor, rightclick below the Template Picker (located to the right of the map) and choose View Source (or View Page Source, depending on the Web browser used). Select all page source text, rightclick, and click Copy. 3. Now, open Microsoft Notepad and paste the contents into a new Notepad file. Save the file to the MyVGI folder and name it samCreate a folder named MyVGI in ple_VGI.html. Change the your wwwroot folder. Save as Type to All Files so that the file does not try to save as a (.txt) text file. 4. Finally, navigate to your MyVGI folder and double-click the sample_VGI.html file that you just created to open the application again—this time you will open the file from the code on your machine. Editing functionality will not work properly at this point, but you will fix that in the next step. Make MyVGI Folder a Web Application Using IIS In this step, you will use Microsoft IIS to create a Web application from the MyVGI folder. 1. Open your Control Panel, double-click Administrative Tools, then double-click Internet Information Services (IIS) Manager. 2. Although the IIS Manager may look slightly different for XP, Vista, and Windows 7 operating systems, the task is the same for all three—expand the IIS tree structure to expose your MyVGI folder that will be located in the Default Web Site folder, then either add or create the application. 3. For Vista, in the Default Web Site folder, right-click the MyVGI folder and click Add Application. In the Add Application dialog box, name the alias MyVGI and, if necessary, define the Physical path by clicking the ellipses button and navigating to your MyVGI folder. Select it and click OK, then click OK again to close the Add Application dialog box. Copy the sample application source text and paste it into a new Notepad document. In the Windows Vista IIS Manager, click Add Application to add your MyVGI folder. 4. For XP, in the Default Web Site folder, select MyVGI and choose properties. From the Directory tab under Application Settings, click Create. Click OK. 5. Close the IIS Manager. Continued on page 54 www.esri.com ArcUser Summer 2010 53