title: Message box not working with page redirect
body: <p>I am trying to display a confirmation popup box before the response.redirect occurs. When I use the code below, I never get a popup it just redirects. Any idea what I am missing?</p>
  
  <pre><code>Try
          Dim msg As String = "Hello!"
          Dim script As String = "alert('" &amp; msg &amp; "');"
          script += "window.location.href ='frmSummary.aspx'"
          'Navigate to Page 2
          'Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "SCRIPT", script,true);
          System.Web.UI.ScriptManager.RegisterClientScriptBlock(Me, Me.[GetType](), "Test",       script, True)
  
      Catch ex As Exception
  
      End Try
  
  
  
      Response.Redirect("~/frmMain.aspx")
  </code></pre>