Avatar of Ed
Ed
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Open New Tab on Browser from child popup window.

I have a popout window which when somone clicks a button it opens a new tab in the parent window

Doing it in the HTML works fine as this.

<a id="btnNewWindow" runat="server" class="btn-primary btn-xs" Height="20px" href="show.aspx" style="text-align: center" target="_blank" visible="false">Open Review in New Tab</a>

Open in new window



but I need to do it in the code behind .  

Below is what I'm currently doing but it redirects the popup window not open a new tab on the parent window.



    Protected Sub btnFullRecord_Click(sender As Object, e As EventArgs)
        Dim TRAINEEID = Session("TRAINEEID")
        Dim POT = Session("POT")
        Response.Redirect([String].Format("candidategeneral.aspx?TraineeID={0}&POT={1}", TRAINEEID, POT))
    End Sub

Open in new window

ASP.NETJavaScript.NET Programming

Avatar of undefined
Last Comment
Big Monty

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Big Monty

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Big Monty

best solution
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23