Image.NavigateUrl 属性

定义

获取或设置图像的目标 URL。 默认值为空字符串 ("")。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 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”)设置属性,请在将路径分配给该属性之前使用 ResolveUrl(“~/path”) 解析该路径。

适用于

另请参阅