Link Class
Assembly: System.Web.Mobile (in system.web.mobile.dll)
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.
Note: |
|---|
| 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. |
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: