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 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 in Visual Studio.

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 Forms 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 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, Customizing Development Settings

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 Note

The location box has no label.

Location

Format of location

File System

C:\MyWebSite

\\OurServer\MyWebApplicatione

HTTP

http://remoteserver/MyWebApplication

http://localhost/MyWebApplication

FTP

ftp:// ftpserver /MyWebApplication

Note 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.

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

Template

Description

ASP.NET Web Forms Site

Use this project template to create a Web site that includes the following functionality. You can choose not to use any of these features if they are not required for your application.

  • A master page.

  • A cascading style sheet.

  • Login security using the ASP.NET membership system.

  • Ajax scripting using jQuery.

  • Navigation using a menu control.

By default, the ASP.NET Web Site project template includes the following:

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

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

  • A master page (the Site.master file).

  • Web pages named Default.aspx, Contact.aspx, and About.aspx. These content pages are based on the default master.

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

  • A Web.config file.

  • A Packages.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 Web Site (Razor v2)

Use this project template to create a Web site based on ASP.NET Web Pages with version 2 of the Razor Syntax. For more information, see Introduction to ASP.NET Web Programming Using the Razor Syntax.

ASP.NET Web Site (Razor)

Use this project template to create a Web site based on ASP.NET Web Pages that use the Razor Syntax. For more information, see Introduction to ASP.NET Web Programming Using the Razor Syntax.

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.

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 Note

This template is not available in Visual Web Developer Express.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft