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

  1. Start Visual Studio 2008 and create a new project.
  2. Click the file menu, click New, and select Web Site. The New Web Site dialog box opens as shown in the following screen shot:

  1. Set the Location value to HTTP and the Language to Visual C#.
  2. Under Visual Studio installed templates, click Web Mapping Application.
  3. 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.
  4. 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.
  5. Add a new MapResourceItem. See the Add Resources section in the MapResourceManager control topic for more detailed information. In general, you can use any resource type that generates a map image.
  6. 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.
  7. Click Stop to stop the application and to close the browser window.


See Also:

Customizing the Web Mapping Application