Style Conventions


We have used certain layout and font styles in this book that are designed to help you to differentiate between the different kinds of information. Here are examples of the styles that are used, with an explanation of what they mean.

As you'd expect, we present code in two different ways: code used inline with text, and code that is displayed on its own. When we need to mention keywords and other coding specifics within the text (for example, in discussion relating to an If ... Else construct or the System.Web namespace) we use the single-width font as shown in this sentence. If we want to show a more substantial block of code, then we display it like this:

  <asp:TextBox  runat="server" />  <asp:Button  onclick="btnSubmit_Click"   runat="server" Text="Click Here!" /> 

Sometimes, you will see code in a mixture of gray and white backgrounds, like this:

  private void Page_Load(object sender, System.EventArgs e)   {  HeaderIconImageUrl = Request.ApplicationPath + "/Images/winbook.gif";  HeaderMessage = "Informative Page";   }

In cases like this, we use the gray shading to draw attention to a particular section of the code – perhaps because it is new code, or it is particularly important to this part of the discussion.

Note

Advice, hints, and background information come in this type of font.

Important

Important pieces of information come in boxes like this.

Bullets appear indented, with each new bullet marked as follows:

  • Important Words are in a bold type font.

  • Words that appear on the screen, or in menus like File or Window, are in a similar font to the one you would see on a Windows desktop.

  • Keys that you press on the keyboard like Ctrl and Enter, are in italics.




Beginning Dynamic Websites with ASP. NET Web Matrix
Beginning Dynamic Websites: with ASP.NET Web Matrix (Programmer to Programmer)
ISBN: 0764543741
EAN: 2147483647
Year: 2003
Pages: 141

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net