New Web Site Dialog Box

The New Web Site dialog box enables you to create a new Web site on the local computer or on a remote computer, or to open an FTP-deployed site for editing.

Note

This dialog box is only for Web site projects. It does not apply to Web application projects. For information about the difference between these types of Web projects, see Web Application Projects versus Web Site Projects.

Tasks

How to: Create File System Web Site Projects

How to: Open Web Site Projects Using FTP

How to: Create IIS Virtual Directories in Visual Studio

Walkthrough: Creating a Basic Web Page in Visual Studio

Walkthrough: Creating a Local IIS Web Site in Visual Studio

Walkthrough: Editing Web Sites with FTP in Visual Studio

Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer

To open the New Web Site dialog box

  • In Visual Web Developer, on the File menu, click New Web Site (or on the File menu, click New and then click Web Site).

    The New Web Site dialog box dialog box appears.

    Note

    In Visual Studio, how the dialog box is accessed depends on whether you are working under Web Development settings or General settings. For more information see, Working with Settings

UI Elements

  • Recent Templates, Installed Templates, Online Templates
    Displays project templates that contain the initial files and folders for the Web site. You can select from the following groups of templates:

    • Installed templates   Web site templates that are installed by default with Visual Web Developer. For more details, see "Default Template Types" later in this topic.

    • Online Templates   Templates that are available online.

  • .NET Framework Version Target
    Specifies the version of the .NET Framework that the Web site will run under.

  • Sort by
    Specifies the order in which templates will be displayed.

  • Search
    Enables you to search a list of templates for a specific string.

  • Web location
    Specifies the Web site type that you want to create or open. The location type you select determines the format of the location in the location box. Location types include the following:

    • File System   A Web application in a folder on the local or a remote computer (using a UNC). The files are not associated with an Internet Information Services (IIS) application unless you create an IIS virtual directory to point to them. For details, see How to: Create File System Web Site Projects.

    • HTTP   An IIS Web site on the local computer or on a remote computer. The files are stored under the Web site root (typically, Inetpub\Wwwroot). For more information, see Local IIS Web Site Projects and Remote IIS Web Site Projects.

    • FTP   A Web site that you can connect to using FTP. You must have credentials to attach to the FTP server and permissions to read and write to the FTP location.

  • (Location box)
    Specifies the location where you want to create or open the application. Choose an existing location from the list, or use the Browse button. The format of the location depends on what type of Web sites that you are creating, as shown in the following table.

    Note

    The location box has no label.

    Location

    Format of location

    File System

    C:\MyWebSite

    \\OurServer\MyWebApplicatione

    HTTP

    http://remoteserver/MyWebApplication

    https://localhost/MyWebApplication

    FTP

    ftp://ftpserver/MyWebApplication

    Note

    To provide logon credentials, click Browse and then click the FTP Site tab.

  • Browse
    Displays the Choose Location Dialog Box dialog box, where you can select a Web site type and find the folder or server where you want to create the site. You can also specify FTP logon credentials.

Default Template Types

Visual Web Developer includes several templates for new Web sites, as listed in the following table.

Template

Description

ASP.NET Web Site

Creates a new Web site that includes the following:

  • Folders to contain membership pages, client script files, and cascading style sheet files.

  • A data folder, which is granted permissions that enable ASP.NET to read and write to it at run time.

  • A master page file.

  • Web pages named Default.aspx and About.aspx.

  • A global application class (Global.asax) file.

  • A Web.config file.

If you are creating a local IIS Web site or a remote IIS site, Visual Studio creates the IIS Web application.

ASP.NET Empty Web Site

Creates a new Web site that includes a Web.config file but no other files.

ASP.NET Dynamic Data Entities Web Site

Creates a Dynamic Data Web site for use with the ADO.NET Entity Framework. This Web site can target any relational database. For more information about Dynamic Data, see ASP.NET Dynamic Data Content Map.

ASP.NET Dynamic Data Linq to SQL Web Site

Creates a Dynamic Data Web site for use with LINQ to SQL. This Web site can target any relational database. For more information about Dynamic Data, see ASP.NET Dynamic Data Content Map.

WCF Service

Creates a Web site for WCF services that includes the following:

  • A default WCF service named Service/svc, which refers to a code file that contains a sample service method.

  • A code folder where you can keep the source code for WCF services and for components that are called by WCF services.

  • A data folder to contain a database or other data. The data folder is granted permissions that enable ASP.NET to read and write to it at run time.

ASP.NET Reports Web Site

Creates a new Web site that enables you to produce and display reports by using SQL Server Reporting Services. For information about SQL Server 2008 and SQL Server Reporting Services, see the SQL Server 2008 Books Online Web site.

Note

This template is not available in Visual Web Developer Express.

ASP.NET Crystal Reports Web Site

Creates a new Web site that enables you to produce and display Crystal Reports. For more information, see Crystal Reports for Visual Studio .NET.

Note

This template is not available in Visual Web Developer Express.

See Also

Concepts

Types of Web Site Projects in Visual Studio

File System Web Site Projects

Local IIS Web Site Projects

Remote IIS Web Site Projects

FTP-Deployed Web Site Projects

Other Resources

Starter Kits

Visual Studio Templates