title: Response.redirect not working
body: <p>I'm using visual studio 2010 asp.net website.
  I made an aspx. page called forgetpassword.aspx and added a button with the codes</p>
  
  <pre><code> protected void Button1_Click(object sender, EventArgs e)
    {
      Response.Redirect("company.aspx");
    }
  </code></pre>
  
  <p>I even tried:</p>
  
  <pre><code> protected void Button1_Click(object sender, EventArgs e)
    {
      Response.Redirect("company.aspx", true);
    }
  </code></pre>
  
  <p>However, the page remains the same, the button is unable to redirect to company.aspx. I suspect there could be something wrong with my master page, but I am not sure. Please advise!</p>
  
  <p>Here is my master page:</p>
  
  <pre><code>   &lt;%@ Master Language="C#" AutoEventWireup="true"        CodeFile="Master.master.cs" Inherits="Master" %&gt;
  
      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
     &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
     &lt;head runat="server"&gt;
     &lt;title&gt;  &lt;meta charset="utf-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;meta name="description" content=""&gt;
    &lt;meta name="author" content=""&gt;
     &lt;title&gt;Home | Triangle&lt;/title&gt;
    &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
    &lt;link href="css/font-awesome.min.css" rel="stylesheet"&gt;
    &lt;link href="css/animate.min.css" rel="stylesheet"&gt; 
    &lt;link href="css/lightbox.css" rel="stylesheet"&gt; 
    &lt;link href="css/main.css" rel="stylesheet"&gt;
    &lt;link href="css/responsive.css" rel="stylesheet"&gt;
  
    &lt;!--[if lt IE 9]&gt;
      &lt;script src="js/html5shiv.js"&gt;&lt;/script&gt;
      &lt;script src="js/respond.min.js"&gt;&lt;/script&gt;
    &lt;![endif]--&gt;       
    &lt;link rel="shortcut icon" href="images/ico/favicon.ico"&gt;
    &lt;link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/ico/apple-touch-icon-144-precomposed.png"&gt;
      &lt;link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/ico/apple-touch-icon-114-precomposed.png"&gt;
    &lt;link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/ico/apple-touch-icon-72-precomposed.png"&gt;
    &lt;link rel="apple-touch-icon-precomposed" href="images/ico/apple-touch-icon-57-precomposed.png"&gt;&lt;/title&gt;
      &lt;asp:ContentPlaceHolder id="head" runat="server"&gt;
      &lt;/asp:ContentPlaceHolder&gt;
   &lt;/head&gt;
   &lt;body&gt;&lt;/body&gt;
    &lt;/html&gt;
  </code></pre>
  
  <p>Here is the source view (html) of my forgetpassword.aspx page:</p>
  
  <pre><code>   &lt;%@ Page Title="" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" CodeFile="forgetpassword.aspx.cs" Inherits="_Default" %&gt;
  
    &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"&gt;
    &lt;/asp:Content&gt;
    &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"   Runat="Server"&gt;
    &lt;asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /&gt;
    &lt;/asp:Content&gt;
  </code></pre>