Ticket Q313998
Visible to All Users

ASPxHyperLink - How to show a content in a new window

created 14 years ago

I want NavigateURL to open a new tab in IE 8 when the link is clicked. How do make that happen with the following code?
            <dx:GridViewDataTextColumn Caption="Reference"
                ShowInCustomizationForm="True" VisibleIndex="2" Width="110px">
                            <DataItemTemplate>
                                <dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" Font-Names="Arial"
                                    Font-Size="11pt" Text='<%# Eval("Reference") %>' NavigateUrl='http://www.google.com'>
                                </dx:ASPxHyperLink>
                            </DataItemTemplate>
            </dx:GridViewDataTextColumn>

Comments (1)
DevExpress Support Team 14 years ago

    Hi Ray,
    Thank you for your message. Please use the ASPxHyperLink.Target property as shown below to show a content in a new window:

    ASPx
    <DataItemTemplate> <dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" Font-Names="Arial" Font-Size="11pt" Target="_blank" Text='<%# Eval("Reference") %>' NavigateUrl='http://www.google.com'> </dx:ASPxHyperLink> </DataItemTemplate>

    Thanks,
    Marion

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.