How to create a Web application with a template


Summary
One of the easiest ways to create a Web application is to start from a template. This topic shows how to create an application from the Web Mapping Application template provided with the Web Application Developer Framework (ADF).

Creating a Web application with a template

Do the following steps:
  1. Start Visual Studio and create a project.
  2. Click the file menu, click New, and select Web Site. The New Web Site dialog box appears. See the following screen shot:


     
  3. Set the Location value to the Hypertext Transfer Protocol (HTTP) and the Language to Visual C#.
  4. Under the Visual Studio installed templates area, click Web Mapping Application.
  5. Type a name and location for the Web application and click OK. Visual Studio shows the Default.aspx page, which contains the Web ADF controls provided.
  6. Set the ResourceItems property on the MapResourceManager control by clicking the ellipsis on the property page to display the MapResourceItem Collection Editor dialog box or by selecting the MapResourceManager control on the page, and clicking the Edit Resources verb.
  7. Add a new MapResourceItem. See the Add Resources section in MapResourceManager control. In general, you can use any resource type that generates a map image.
  8. Click Start to run the application. Explore the interface of the Web application. For example, click the Show menu and select the Tools item to display the toolbar. Select the Zoom In tool on the toolbar and drag a rectangle over the map.
  9. Click Stop to stop the application and to close the browser window.


See Also:

Customizing the Web Mapping Application