ASPxHyperLink.NavigateUrl Property
SECURITY-RELATED CONSIDERATIONS
Using untrusted or user-specified URLs in redirect operations may direct users to malicious sites. Always use trusted, fixed endpoints to prevent open-redirect attacks.
Gets or sets an URL which defines the navigation location for the editor’s hyperlink.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v26.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| String | String.Empty | A String value which represents an URL to where the client web browser will navigate when a hyperlink in the editor is clicked. |
Remarks
Use the NavigateUrl property to specify an URL to which the client web browser navigates whenever the editor’s hyperlink is clicked. If the NavigateUrl property is assigned, the editor’s caption text serves as a link. If this property is set to an empty string (String.Empty) no navigation is performed when clicking on the editor’s text (or image).
Example
This example demonstrates how to customize the ASPxHyperLink control.
<dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" Text="DevExpress" NavigateUrl="http://devexpress.com/"
ImageUrl="~/imgs/logo.png">
</dx:ASPxHyperLink>