Image.NavigateUrl 属性

定义

获取或设置图像的目标 URL。 默认值为空字符串 ("")。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

public:
 property System::String ^ NavigateUrl { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.Design.MobileControls.Converters.NavigateUrlConverter))]
public string NavigateUrl { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.Design.MobileControls.Converters.NavigateUrlConverter))>]
member this.NavigateUrl : string with get, set
Public Property NavigateUrl As String

属性值

图像的目标 URL。

属性

注解

如果应用程序依赖于无 Cookie 会话,或者可能从需要无 Cookie 会话的浏览器接收请求,则使用路径中的波形符 (“~”) 可能会无意中导致创建新会话并可能丢失会话数据。 若要使用路径(如 (“~/path”) )设置属性,请使用 (“~/path”) 解析 ResolveUrl 路径,然后再将其分配给属性。

适用于

另请参阅