Web Development Basics

SAVE A FILE TO THE DEFAULT WEB SITE

ou can save your files to the Default Web site so that you and others can request the file from the Web server.

site, as opposed to a local drive on the Web server. To find the physical location of where your Web site files are stored, see page 22.

The Default Web site is a Web site that is on your Web server when you install Internet Information Server 5.0. If you have not mapped the Default Web site to another location, the default location for the Default Web site is C:\InetPub\wwwroot. That is the path you should use if you have not changed the default configuration.

If your Web server is on a different machine than the physical files of your Web site, you need to save the files on the file share that is designated for your Web

Common files that will make up your Web sites include Web Forms, Code-behind Pages, Web Services/Web Service Clients, components, and configuration files. Unlike ASP 3.0 sites that use components, ASP.NET applications are self-describing and do not require registry entries. Therefore, you can simple copy the application with xcopy or ftp. Copy deployment works in most cases, but there are other configurations that take a few more steps to properly configure.

SAVE A FILE TO THE DEFAULT WEB SITE

SAVE A FILE TO THE DEFAULT WEB SITE

-D Click File O Save As.

< Type a name for the file.

Browse to the Default Web site at http://localhost.

■ The Web page appears in the Default Web site.

-D Click File O Save As.

Click to select the folder where you want to store your file.

■ If the folder where you want to store the files is not onscreen, click the Save in 0 to select the folder.

< Type a name for the file.

Click Save to save the Web page.

Note: To enable the file to load automatically in the Default Web site, save the file to the root directory (C:\Inetpub\wwwroot\) as Default.htm.

Browse to the Default Web site at http://localhost.

Note: See page 20 for instructions on browsing the Default Web site.

■ The Web page appears in the Default Web site.

Note: See page 14 for more information about the default document in IIS.

Was this article helpful?

0 0

Post a comment