title: Update UpdatePanel from code behind on System.timers.timer elapsed event
body: <p>Is it possible, using asp.net and vb.net as the code behind, to update an UpdatePanel on a System.Timers.Timer elapsed event? I know a timer control is available, but please help me to do this with the Systems.Timer.Timer - I have reason to use it this way.</p>
  
  <p>Every time the subroutine that handles my timer's elapsed event is called, I have a literal whose text I update. After I update the text, I call update() on my UpdatePanel. Nothing happens. I know there are ways to do this with Javascript on the client side, but if at all possible I want to stay away from that and stay server side, which I feel is what the Ajax UpdatePanel is trying to do for me anyway. I feel like the UpdatePanel should do exactly what I need, updating just a small portion of my page, in this case where my literal is stored. Thank you so much in advance.</p>
  
  <p>Here is part of my markup:
      </p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:Literal ID="timerLit" runat="server" /&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>And here is my vb:</p>
  
  <pre><code>Protected Sub onTimerElapsed(source As Object, e As ElapsedEventArgs)
      timerLit.Text = "Hello"
      UpdatePanel1.update()
  End Sub
  </code></pre>
  
  <p>I have tried many things. I know that my onTimerElapsed subroutine is called, and I know that the literal gets filled with the correct text. The update() just doesn't seem to do anything. Thanks again!</p>