JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the HyperLink Class

You use the HyperLink class to create hyperlinks in Web applications. Here is the inheritance hierarchy of this class:

Object
   Control
      WebControl
         HyperLink

You can find the notable public properties of HyperLink objects in Table 17.6. (This class has no non-inherited methods or events.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Chapter 15, Tables 15.1 to 15.5.

Table 17.6: Noteworthy public properties of HyperLink objects.

Property

Means

ImageUrl

Gets/sets the URL of an image you want to use in the hyperlink.

NavigateUrl

Gets/sets the URL to navigate to when the hyperlink is clicked.

Target

Gets/sets the target window or frame to display the new content in when the hyperlink is clicked.

Text

Gets/sets the text for the hyperlink.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor