I would like to know if there is any way I can open a new tab by right-clicking or a middle mouse button ...
I am using " LinkButton
" but the command occurs within OnItemCommand="ListaMenu_ItemCommand
".
Aspx:
<asp:Repeater ID="ListaMenu" runat="server"
OnItemCommand="ListaMenu_ItemCommand">
<ItemTemplate>
<li><asp:LinkButton ID="LknMenu" runat="server" Text='<%#Eval("NOMTIPPRO").ToString()%>' ToolTip ='<%#Eval("CODTIPPRO").ToString()%>' target="_blank">
</asp:LinkButton>
</li>
</ItemTemplate>
</asp:Repeater>
Aspx.cs:
protected void ListaMenu_ItemCommand(object source, RepeaterCommandEventArgs e)
{
LinkButton lnkId = (LinkButton)e.Item.FindControl("LknMenu");
Response.Redirect("~/KnPesquisa.aspx?knMnuTipo=Tipo&knMnuCodTipo=" + lnkId.ToolTip);
}