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 2 ■ BASICS OF WEB DEVELOPMENT WITH <strong>ASP</strong>.<strong>NET</strong> 35<br />

<br />

<br />

<br />

<br />

Here, the configuration for the system.web namespace is being set up. As you can see,<br />

the compilation attribute is set to "true", enabling application debugging. Any references<br />

that were added will have their assemblies referenced here, <strong>and</strong> the authentication type<br />

that should be used to talk to the site is set. <strong>Web</strong>.config is a useful <strong>and</strong> powerful tool, <strong>and</strong><br />

something you should become familiar with. As you step through the examples in this<br />

book, you’ll be using it extensively to fine-tune <strong>and</strong> configure your site to work to the best<br />

of its abilities.<br />

The recommended methodology for editing <strong>Web</strong>.config is to use the <strong>Web</strong> Site ➤<br />

<strong>ASP</strong>.<strong>NET</strong> Configuration menu option within the IDE. This menu option launches an<br />

editor for <strong>Web</strong>.config, called the <strong>Web</strong> Site Administration Tool, which ensures that the<br />

settings are placed in the correct location in the file <strong>and</strong> that they are using the correct<br />

syntax. Invalid syntax or settings within <strong>Web</strong>.config will break your site, so be careful<br />

when editing it by h<strong>and</strong>! You can see the <strong>Web</strong> Site Administration Tool in Figure 2-23.

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

Saved successfully!

Ooh no, something went wrong!