I have a .net project and I've been trying to use a linkbutton
in a such a way that it will not open the link on another page/tab. At the moment what I have open the link on another page.
Please help.
My ascx page code below:
<td>
<asp:LinkButton ID="ApproveButton" runat="server" Text="Approval" CssClass="btn btn-primary btn-xs" OnClientClick="window.open('/Licence-Application/Applicant-Approval-Page');"/>
</td>
I have tried window.open
, window.show
, Response.Redirect
, window.location
, location.href
with no luck.
It's either it keeps opening the same page or gives an error or open on a new tab.