title: Exception thrown by page redirection in asp.net
body: <p>I have this code</p>
  
  <pre><code>protected void Button_Click(object sender, EventArgs e)
  {
      try
      {
          // some code
  
          con.Open();
          string result = command.ExecuteScalar().ToString();
  
          if (result != string.Empty)
          {
               // some code
               Response.Redirect("Default.aspx");
          }
      }
      catch (Exception ex)
      {
          throw new Exception(ex.Message);
      }
      finally
      {
          con.Close();
      }
  </code></pre>
  
  <p>It gives an exception from <code>Response.Redirect("Default.aspx");</code></p>
  
  <blockquote>
    <p>ex: Thread was being aborted.</p>
  </blockquote>
  
  <p>any idea why?</p>
  
  <p>thanx</p>