title: asp.net timer and response.redirect
body: <p>i have a Timer that checks some condition and as the condition become true it has to redirect the page  </p>
  
  <pre><code>     protected void Page_Load(object sender, EventArgs e)
      {
          if (!Page.IsPostBack)
          {
              /* Thread th = new Thread(new ThreadStart(OtherThread));
               th.Start();*/
              System.Timers.Timer t = new System.Timers.Timer(9000);
              t.Enabled = true;
              t.Elapsed += new System.Timers.ElapsedEventHandler(t_Elapsed);
              Session["total"] = 0;
          }
      }  
  void t_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
      {
  if(db.getvalue()==true)
     response.redirect("abc.aspx"); //notworking
    //server.transfer("abc.aspx"); //not working
  }
  </code></pre>
  
  <p>How can i redirect my page. Is there any way it can be done by js or anything else?</p>