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.

56 x CHAPTER 2 BUILDING AN <strong>ASP</strong>.<strong>NET</strong> WEBSITE<br />

FIGURE 2-17<br />

4. Position your cursor at the end of the head<strong>in</strong>g after the word Wrox <strong>and</strong> press Enter. A new paragraph<br />

(<strong>in</strong>dicated by a small glyph with the letter p on it) is <strong>in</strong>serted for you so you can directly start<br />

typ<strong>in</strong>g.<br />

5. Type the text shown <strong>in</strong> Figure 2-18 (or make up your own) to welcome the visitor to Planet Wrox.<br />

Notice how the text www.PlanetWrox.com turns blue as soon as you type the comma to <strong>in</strong>dicate<br />

VS has recognized it as a web address <strong>and</strong> has turned it <strong>in</strong>to a l<strong>in</strong>k. You can press Enter to<br />

start a new paragraph. Select the text “pay<strong>in</strong>g a visit,” click the Foreground Color button on the<br />

Formatt<strong>in</strong>g toolbar, <strong>and</strong> select a different color <strong>in</strong> the dialog box that appears. Then select some<br />

other text, such as “reviews <strong>and</strong> concert pictures,” <strong>and</strong> click the Bold button. When you’re done,<br />

your Design View should show someth<strong>in</strong>g similar to Figure 2-18.<br />

FIGURE 2-18<br />

The code for the homepage should now look more or less similar to the follow<strong>in</strong>g (the code<br />

has been reformatted a bit to fit the space <strong>in</strong> the book):<br />

<br />

Hi there visitor <strong>and</strong> welcome to Planet Wrox<br />

<br />

We&#39;re glad you&#39;re<br />

pay<strong>in</strong>g a visit to<br />

www.PlanetWrox.com,<br />

the coolest music community site on the Internet.<br />

<br />

<br />

Feel free to have a look around; there are lots of <strong>in</strong>terest<strong>in</strong>g<br />

reviews <strong>and</strong> concert pictures to be found here.<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!