Developing Web Applications with the Web ADF  

Creating a Web application with a template

 

One of the easiest ways to create a Web application is to start from a template. This example shows you how to create an application from the Web Mapping Application template provided with the Web ADF.
 
  1. Start Visual Studio 2005 and create a new project.  Click the file menu, click New, and select Web Site.
  2. In the New Web Site dialog, set the Location value to HTTP, and Language to Visual C#.
  3. Under Visual Studio installed templates, click Web Mapping Application.


  4. Enter a name and location for the Web application and click OK.

    Visual Studio should show the Default.aspx page, which contains nearly every Web ADF control provided.
  5. Set the ResourceItems property on the MapResourceManager control.  Click the ellipsis in the property page to display the MapResourceItem Collection Editor dialog.  Or select the MapResourceManager control in the page and click the Edit Resources verb.
  6. 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. 
  7. Click the Start button to run the application.
  8. Explore the interface of your first Web application.  For example, click the Show menu, 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 the Stop button to stop the application or the close the browser window.