I have this code that when "preview" is clicked, the email opens in a new window. That works fine. However when "Send" is clicked, the user gets a confirmation window that they will be sending an email and cant be undone. I need to open this in a new window. I have added target=_blank a couple of times and its not working. What am I missing here?
vb.net code:
strEmailLink = "<a target=_blank href=/ADMIN/new/PRIVATE/GAINSHARE/group_growth/SupplierEmail.aspx?index=Preview&userName=" & e.Row.Cells(11).Text & "&memName=" & Server.UrlEncode(e.Row.Cells(11).Text) & "&memberInfo=" & Server.UrlEncode(e.Row.Cells(5).Text) & ">Preview</a>"
strEmailLink += " | <a target=_blank href=""#"" onclick = ""if (confirm('Are you sure you want to Send this email to " & e.Row.Cells(11).Text & "? This action cannot be undone. "
strEmailLink += "Click OK or CANCEL to return to the page.'))window.location='SupplierEmail.aspx?index=Send&userName=" & e.Row.Cells(11).Text & "'; return false"">Send</a>"
vb.net code:
strEmailLink = "<a target=_blank href=/ADMIN/new/PRIVATE/GAINSHARE/group_growth/SupplierEmail.aspx?index=Preview&userName=" & e.Row.Cells(11).Text & "&memName=" & Server.UrlEncode(e.Row.Cells(11).Text) & "&memberInfo=" & Server.UrlEncode(e.Row.Cells(5).Text) & ">Preview</a>"
strEmailLink += " | <a target=_blank href=""#"" onclick = ""if (confirm('Are you sure you want to Send this email to " & e.Row.Cells(11).Text & "? This action cannot be undone. "
strEmailLink += "Click OK or CANCEL to return to the page.'))window.location='SupplierEmail.aspx?index=Send&userName=" & e.Row.Cells(11).Text & "'; return false"">Send</a>"