Represents a hyperlink to another MobileControl.Form on the same mobile page or to an arbitrary URI.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public class Link : TextControl, IPostBackEventHandler
On all devices, the link is rendered in such a way that the Text property displays on the device to the user. When the user invokes the link, the browser navigates to the specified NavigateUrl property. The application must contain code that verifies that a link is browsable on a particular device. For example, the link http://www.microsoft.com is not browsable on a WML-capable device.
If the Text property is empty, the value in the NavigateUrl property is also used for the Text property. Specifically, when the text writer renders a link, it first checks the Text property for the text to display; if that property is empty, it displays the value of the NavigateUrl property.
If your application relies on cookieless sessions, or might receive requests from devices that require cookieless sessions, using a tilde ("~") in a path can inadvertently result in creating a new session and potentially losing session data. To set a property with a path such as ("~/path"), resolve the path using ResolveUrl("~/path") before assigning it to the property.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.