Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LinkButton open new window tab

Tags:

c#

asp.net

<asp:LinkButton ID="lnkbtnMoreTagRules" runat="server" 
   CommandName='<%#Eval("Value")%>'
   CommandArgument='<%# string.Format("{0}||||{1}", Eval("Tag"), 
       Eval("TagAppearance"))%>' 
   OnCommand="lnkbtnMoreTagRules_Command">Več pravil</asp:LinkButton>

I want to close current window tab and open new one.

How can i open a new window tab with linkbutton. target="_blank" not helping.

like image 203
senzacionale Avatar asked Dec 16 '22 14:12

senzacionale


1 Answers

As link button is posted back, so it cannot be used for a GET request. instead use HyperLink Class

like image 72
Adeel Avatar answered Jan 02 '23 06:01

Adeel