Back to Devexpress

ASPxHyperLink.Target Property

aspnet-devexpress-dot-web-dot-aspxhyperlink-9448747c.md

latest2.7 KB
Original Source

ASPxHyperLink.Target Property

Gets or sets the window or frame at which to target the contents of the URL associated with the editor.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

A string which identifies the window or frame at which to target the URL content.

|

Remarks

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Target property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

aspxgridview-hyperlink-based-on-several-cell-values/CS/Solution/Default.aspx.cs#L14

csharp
link.Text = "Show New Form, Key Field = " + container.KeyValue;
link.Target = "_blank";
link.NavigateUrl = "Default2.aspx?id=" + container.KeyValue;

aspxgridview-hyperlink-based-on-several-cell-values/VB/Solution/Default.aspx.vb#L17

vb
link.Text = "Show New Form, Key Field = " & container.KeyValue
link.Target = "_blank"
link.NavigateUrl = "Default2.aspx?id=" & container.KeyValue

See Also

NavigateUrl

Hyperlink

ASPxHyperLink Class

ASPxHyperLink Members

DevExpress.Web Namespace