Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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

Community Additions

© 2015 Microsoft