08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 6 ■ DEPLOYING YOUR WEB SITE 133<br />

other files as configured using IIS Manager—including files with an .aspx extension,<br />

perhaps!<br />

If you are planning on using scripts such as <strong>ASP</strong>, <strong>ASP</strong>.<strong>NET</strong>, or PHP on your site, the<br />

“Run scripts” check box should be selected, too.<br />

Some older technologies for active web content, such as Internet Server Application<br />

Programming Interface (ISAPI) <strong>and</strong> CGI, can also be supported by IIS. These involve<br />

compiled, executable files, <strong>and</strong> should you need to use these, you can configure the<br />

server to allow for their execution by selecting the Execute check box.<br />

If you want to allow the user to upload files to this directory, select the Write check<br />

box. By default, this is disabled for security reasons. You’ll want to be careful when using<br />

this setting for obvious reasons.<br />

Finally, if you want to allow users to browse your site <strong>and</strong> retrieve a listing of the<br />

pages in the site <strong>and</strong> its subdirectories when they do not specify a page, then you should<br />

select the Browse check box. You should also use the Browse option for creating sites<br />

where no default page exists.<br />

Figure 6-5. Virtual directory access permissions<br />

The wizard will complete, <strong>and</strong> your virtual directory will be ready, but empty.<br />

Add a new text file to the directory by using IIS Manager or Windows Explorer. Call it<br />

test.htm <strong>and</strong> give it the following contents:<br />

<br />

<br />

My HTML Page<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!