Omi Omi - 1 year ago 76
ASP.NET (C#) Question

How to use a Linkbutton to open into a new tab?

I am using a

within a
control.I want to open the data into a new tab.I tried to set
But it is not working.
I have tried doing this.This is my source code:

<asp:LinkButton ID="LinkButton1" runat="server"
CommandArgument="<%# Container.DataItemIndex %>" CommandName="###"
Font-Underline="False" Text='<%# Eval("###") target="_blank" %>' />

Please guide me and give me suggestions where I am doing wrong.

Answer Source

At most you can make it open into a new window and depending on the users internet settings it will open in a new tab. There's no way to make it open in a new tab though.

Also check out this page:

how to open a page in new tab on button click in

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download