So, we need a little helper script to make this happen:
<script type="text/javascript">
window.open("destinationpage.aspx");
</script>Including scripts in your code parts may cause readability to suffer, so to change this in an easy to re-use function, create a new module and place the following code in it:
Public Sub RedirectWindow(ByVal s_destinationURL As String)
Dim mysession As HttpContext = HttpContext.Current
mysession.Response.Write("<script type=" & Chr(34) & "text/javascript" & Chr(34) & ">")
mysession.Response.Write("window.open(" & Chr(34) & s_destinationURL & Chr(34) & ");")
mysession.Response.Write("</script>")
End SubNow, you can use the following in your asp.net code
' --- Normal redirect
Response.Redirect("Newlocation.aspx")
' --- Redirect to a new window
RedirectWindow("Newlocation.aspx")