Search
Setting up your website to use NetDiagram

To create a new ASP.NET website follow the steps below:

  1. Select File -> New -> Web Site from the Visual Studio menu.
  2. In the dialog box that appears, select Visual C# Project (or Visual Basic project) type from the list on the left.
  3. Choose ASP.NET Web Site from the list of installed templates.
  4. In the Location field, select File System.
  5. Type in the name of your Web Site, for instance NetDiagramWebsite, and click OK.

 Note

Choosing 'File System' in the Location field means that the ASP.NET Development Web Server of Visual Studio 2005 will be used.

To use Internet Information Services (IIS), select Location HTTP and specify the complete URL address of the Website you intend to create. The Web server must have IIS version 5 or later.

An application is created consisting of the Web folder App_Data and the Web Form Default.aspx.

The source code of the default page is shown in the Source window. Click the Source tab at the bottom of the Web Forms window to switch to Source view.
The Default.aspx source file is shown.

  1. Change the file name Default.aspx: select Default.aspx in the Solution explorer, click the right mouse button, and choose 'Rename' from the context menu. Fill in 'NetDiagram.aspx'.
  2. Click the Design tab at the bottom of the Web Forms window. The Design view is blank now. The needed controls can be chosen from the Visual Studio Toolbox, and dragged and dropped in the Design view on the Web Form. Use the Properties window to configure the added controls.

Visual Studio generates automatically the HTML code and shows it in the Source view. You can edit this code if you wish.