title: Writing a code trigger for the updatepanel. C# - ASP.NET
body: <p>I have this UpdatePanel I want to use in my website. Basicly the idea is that a user clicks on a link and start a service on the server that will change a database.</p>
  
  <p>So what I want to write is a method that wil return true or false if the database is updated. The method should run on timed intervals. If the database has been updated it will return true and that should trigger the UpdatePanel to update.</p>
  
  <p>I know you can add triggers through controls. But is it possible to do so through code as well? The idea is that if the user stays on the page after starting the action he will see the result appear when the method returns true. If the user leaves the page he of course sees nothing.</p>
  
  <p>If this is not the right to use this then please say so. </p>
  
  <p>Any comment will be appreciated!
  Kind regards,
  Floris</p>