Creating a Web application with a template
Do the following steps:
- Start Visual Studio and create a project.
- Click the file menu, click New, and select Web Site. The New Web Site dialog box appears. See the following screen shot:
- Set the Location value to the Hypertext Transfer Protocol (HTTP) and the Language to Visual C#.
- Under the Visual Studio installed templates area, click Web Mapping Application.
- 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.
- 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.
- 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.
- 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.
- Click Stop to stop the application and to close the browser window.