Partager via


Introduction to the Link Control 

The Link control displays text that serves as a hyperlink. The hyperlink can lead to another form on the same ASP.NET mobile Web page or to any other URL. For devices that support softkeys (a programmable button available on many cell phones), you can also specify text for softkey captions. If you want to create an image that is also a link, use an Image control.

ASP.NET Web Application Link

A Link control must be placed within a Form or Panel control, or within a control's template. Enter the link's text into the Text property. For output devices that support softkeys, specify the softkey's caption using the SoftkeyLabel property. Use the NavigateUrl property to specify the link's destination URL.

Customize the appearance of the Link control with the Alignment ForeColor, Font, StyleReference, and Wrapping properties. If you want to prevent a line break from occurring after the link, set the BreakAfter property to false.

Applying device filters to a Link control enables you to specify property override values. Overriding property values customizes the appearance and behavior of the control for specific devices.

Using data binding, the Link control can also obtain its property values dynamically from a data source.

See Also

Tasks

How to: Add and Configure a Link Control

Reference

Link

Concepts

Overriding Properties
Introduction to the Image Control
Introduction to the Form Control
Introduction to the Panel Control

Other Resources

Using Device Filters