title: Response.Redirect not working
body: <p>I am not sure why this is not working.  </p>
  
  <p>I am verifying the logged on person has the correct security, if they do not I want to redirect them to another page.  </p>
  
  <p>If they do have the correct security the rest of the code on the page will continue to execute.  </p>
  
  <p>When I step through the code, it does execute the response.redirect, but the page continues to load.</p>
  
  <pre><code>strSQL = "Select * from tblSecurity Where SFID = '" &amp; Right(My.User.Name, 4) &amp; "' and (SecurityLevel = '900' or SecurityLevel = '850')"
  ds = objData.SQLExecuteDataset(strSQL, CommandType.Text)
  If ds.Tables(0).Rows.Count = 0 Then
      Response.Redirect("~/NotAuthorized.aspx", False)
  End If
  </code></pre>