03.11.2016 Views

Beginning ASP.NET 4.5 in CSharp and VB Opsylum

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INTRODUCTION<br />

‰ Code shown for the first time, or other relevant code, is <strong>in</strong> the follow<strong>in</strong>g format:<br />

Dim roles As New ArrayList()<br />

roles.Add("Adm<strong>in</strong>istrators")<br />

roles.Add("ContentManagers")<br />

To put emphasis on a block of code surrounded by other code, I use a bolded font like this:<br />

<br />

<br />

<br />

The surround<strong>in</strong>g code is used to make it easier to see where the bolded code should be<br />

placed.<br />

‰ Quite often, white space <strong>in</strong> code is irrelevant, as is mostly the case with <strong>ASP</strong>.<strong>NET</strong> markup<br />

<strong>and</strong> HTML. To fit code with<strong>in</strong> the boundaries of this book, I often wrap code over multiple<br />

l<strong>in</strong>es <strong>and</strong> <strong>in</strong>dent the part that should have been on the previous l<strong>in</strong>e like this:<br />

Dim result As Str<strong>in</strong>g =<br />

WebConfigurationManager.AppSett<strong>in</strong>gs.Get("FromAddress")<br />

If you’re typ<strong>in</strong>g this code yourself, you can put it all on one l<strong>in</strong>e, or use the same l<strong>in</strong>e breaks<br />

if you prefer. The sample code that comes with this book has the code typically on a s<strong>in</strong>gle<br />

l<strong>in</strong>e.<br />

‰ Text that appears on-screen often has Each Word Start With A Capital Letter, even though<br />

the orig<strong>in</strong>al screen text uses a different capitalization. This is done to make the screen text<br />

st<strong>and</strong> out from the rest of the text.<br />

SOURCE CODE<br />

As you work through the examples <strong>in</strong> this book, you may choose either to type <strong>in</strong> all the code<br />

manually or to use the source code files that accompany the book. All of the source code used <strong>in</strong> this<br />

book is available for download from the book’s own page on the Wrox website at www.wrox.com/<br />

remtitle.cgi?isbn=1118311809. If somehow this l<strong>in</strong>k no longer works, go to www.wrox.com <strong>and</strong><br />

locate the book either by us<strong>in</strong>g the Search box or by us<strong>in</strong>g one of the title lists. Click the Download<br />

Code l<strong>in</strong>k on the book’s detail page to obta<strong>in</strong> all the source code for the book.<br />

NOTE Because many books have similar titles, you may fi nd it easiest to search<br />

by ISBN; for this book the ISBN is 978-1-118-31180-6.<br />

You can download the full source for this book as a s<strong>in</strong>gle file for each programm<strong>in</strong>g language used<br />

<strong>in</strong> the book (C# or Visual Basic). You can decompress these files with your favorite decompression<br />

tool. If you extract the source, make sure you ma<strong>in</strong>ta<strong>in</strong> the orig<strong>in</strong>al folder structure that is part of<br />

xxxix

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

Saved successfully!

Ooh no, something went wrong!