title: How can i refresh a asp page from code behind? C#
body: <p>I'm kind of new at this and my English is also poor. Anyway:</p>
  
  <p>I'm trying to set a Timer that refreshes my page if there is any new record on my report. Apparently my timer works fine because when i debugged it it enters into the function <code>Timer1_Tick</code>, but it doesn't refresh my Page.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>System.Timers.Timer Timer1 = new System.Timers.Timer();
  Timer1.Interval = 10000;
  Timer1.Elapsed += Timer1_Tick;
  Timer1.Enabled = true;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>protected void Timer1_Tick(object sender, EventArgs e){
    Response.Redirect("ReporteIncidencia.aspx"); //1st attempt
    ScriptManager.RegisterStartupScript(Page, typeof(Page), "somekey", "RefreshPage()", true); //2nd attempt
    Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "RefreshPage()", true); //3rd attempt
  }
  </code></pre>
  
  <p>also</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function RefreshPage()
  {
    window.location.reload()
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>EDIT:</p>
  
  <ol>
  <li>I'm using Framework .NET 3.5</li>
  <li>I tried with this <a href="https://stackoverflow.com/questions/2240287/refresh-page-c-sharp-asp-net">post</a> but it doesn't work.</li>
  <li>Thanks for answer.</li>
  </ol>