2010年7月15日_Creating a Web application with a template

Creating a Web application with a template

使用模板创建Web应用程序//主题思想

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.

使用模板创建网络应用程序是最简单方法中的一种。下面的例子给你展示如何使用WebADF提供的网络地图应用程序模板创建一个应用程序。

  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.

1:启动VS2005并创建一个新的工程。单击文件菜单,单击新建菜单,然后选择站点。

2:在新建站点对话框里面,设置一个HTTP访问的路径,以及选择使用C#开发语言。

3:找到VS安装的模板,选择地图应用程序模板

 

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.

为应用程序输入一个存储路径,并单击OK按钮。VS将会显示那个默认的页面,这个页面几乎包含Web ADF架构提供的所有的控件。

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.

在MapResourceManager里面设置ResourceItems属性。单击属性页里面的省略号显示MapResourceItem集合的编辑对话框。或者在页面上选择MapResourceManager控件并单击编辑资源。

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.

添加一个新的MapResourceItem项。更多详细信息参考MapResourceManager控件的添加资源项。

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.

单击停止按钮停止应用程序,或者关闭浏览器的窗口。

 

 

原文地址:https://www.cnblogs.com/xingchen/p/1779370.html