Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

516 Part IV Database and Web Programming


Now, you’ll add a hyperlink on the first Web page (or home page) that will display this Web
page when the user wants to see the database table. You’ll create the hyperlink with the
HyperLink control, which has been designed to allow users to jump from the current Web
page to a new one with a simple mouse click.

How does the HyperLink control work? The HyperLink control is located in the Standard
Toolbox. When you add a HyperLink control to your Web page, you set the text that will be
displayed on the page by using the Text property, and then you specify the desired Web page
or resource to jump to (either a URL or a local path) by using the NavigateUrl property. That’s
all there is to it.

Add a hyperlink to the home page


  1. Click the Default .aspx tab at the top of the Designer.


The home page for your Web site opens in the Designer.


  1. Click to the right of the Calculate button object to place the insertion point after that
    object.

Free download pdf