Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

Chapter 20 Creating Web Sites and Web Pages by Using Visual Web Developer and ASP .NET 497


The “my” prefix in the path will avoid a conflict with the solution Web site in the
practice files (C:\Vb10sbs\Chap20) that I’ve built for you.


  1. Click OK to accept your selections.


Visual Studio loads Visual Web Developer and creates a Web page (Default .aspx) to
contain the user interface and a code-behind file (Default .aspx .vb) that will store the
code for your Web page.


  1. If you don’t see Default .aspx open in the Web Page Designer, double-click Default .aspx
    in Solution Explorer now to open it.

  2. At the bottom of the Web Page Designer, click the Design tab.


Your screen looks something like the one shown in the following screen shot:

Unlike the Windows Forms Designer, the Web Page Designer displays the Web page in
three possible views in the IDE, and three tabs at the bottom of the Designer (Design,
Split, and Source) allow you to change your view of the Web page.
The Design tab shows you approximately how your Web page will look when a Web
browser displays it. When the Design tab is selected, a basic template page (“My
ASP .NET Application”) appears in the Designer with the result of source-code
formatting, and you can add controls to your Web page and adjust how objects on
the page are arranged.
On the Source tab, you can view and edit the HTML and ASP .NET markup that’s used to
display the Web page in a Web browser. If you’ve used Microsoft Expression Web, you’ll
Free download pdf