How can i have Response.Redirect() work from MasterPage?
<p>I have a problem: when i call a Response.Redirect() from the MasterPage it doesn't work.
Well, debugging i can see that until the Pre_Render() method the target page is loaded, but then is rendered the previous page.</p>

<p>Here's some code to better explain:</p>

<p>(from MasterPageMain.master.cs)</p>

<pre><code>protected void Page_Init(object sender, EventArgs e)
{
    string m_QueryStringValue = Request.QueryString.Get("action");
    if ((!string.IsNullOrEmpty(m_QueryStringValue)) &amp;&amp; (m_QueryStringValue.ToLower() == "send"))
    {
        if (Session["to"] != null &amp;&amp; Session["to"] is List&lt;string&gt;) this.SendPageByMail();
        else
        {
            Session.Add("AddressToSend", Request.RawUrl);
            Response.Redirect("~/chooseRecipients.aspx");
        }
    }
}
</code></pre>

<p>I have a javascript that adds the querystring adding "action=send" when i click on the Send button.</p>

<p>If i am on page "~/somethingInterestingToSend()" -for example- i want to get on the recipient selection page, but when i click the Send button i see always the same page.</p>

<p>What coul be the mistake?</p>
