title: Page_Load not firing after Response.Redirect in ASP.NET
body: <p>in a asp.net application i have a form, and after a user clicks a button i use Response.Redirect to go to another page. But in the second page the Page_Load event is not firing. I have tried to set AutoEventWireup="false. Also i have tried to clear the cache of the browser and last i tried to use this.Load event handler but the result is the same. Any help is appreciated.</p>
  
  <p>Thanks in advance and merry Christmas!</p>
  
  <p>/<em>Added the code</em>/</p>
  
  <pre><code>protected void btnSubmit_Click(object sender, EventArgs e)
      {
          CreateXML();
          PostToWebApplicationB();
          Response.Redirect(url);
      }
  </code></pre>
  
  <p>/<em>This is PostToWebApplicationB method</em>/</p>
  
  <pre><code>private void PostToWebApplicationB()
      {
          try
          {
              request = WebRequest.Create(url);
              request.Method = "POST";
              request.ContentType = "text/xml";
  
              StreamWriter writer = new StreamWriter(request.GetRequestStream());
              writer.WriteLine(this.GetTextFromXmlFile(filepath));
              writer.Close();
              response = request.GetResponse();
          }
          catch (Exception ex)
          {
              errorLabel.Text = ex.Message;
          }
          finally
          {
              if (request != null)
              {
                  request.GetRequestStream().Close();
              }
              if (response != null)
              {
                  response.GetResponseStream().Close();
              }
          }
      }
  </code></pre>
  
  <p>/<em>Directive of destination page</em>/</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Intermediate.aspx.cs"
  Inherits="WebApplicationB.Intermediate" %&gt;
  </code></pre>