Back to Devexpress

ASPxHyperLink.ImageUrl Property

aspnet-devexpress-dot-web-dot-aspxhyperlink-f25bf102.md

latest2.2 KB
Original Source

ASPxHyperLink.ImageUrl Property

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Gets or sets the path to the image displayed within the editor.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string ImageUrl { get; set; }
vb
<DefaultValue("")>
Public Property ImageUrl As String

Property Value

TypeDefaultDescription
StringString.Empty

A String value which specifies the URL that represents the path to the image displayed within the editor.

|

Remarks

This property is a wrapper of the HyperLinkProperties.ImageUrl property.

Example

This example demonstrates how to customize the ASPxHyperLink control.

aspx
<dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" Text="DevExpress" NavigateUrl="http://devexpress.com/" 
    ImageUrl="~/imgs/logo.png">
</dx:ASPxHyperLink>

See Also

NavigateUrl

Text

ImageHeight

ImageWidth

Hyperlink

ASPxHyperLink Class

ASPxHyperLink Members

DevExpress.Web Namespace