How can I invoke a javascript trhough a thread?
<p>I have a thread that runs querying a DB and returning some values. If this values satisfyes a condition, I want to raise a message box (javascript alert) for the client side.</p>

<p>In my system, users can post some tasks in DB, and the thread is going to constantly query the database to check if user has things to do. If user has, the system must alert him through a message box. The text is very simple, and statik, like "Hey, dude, go work, lazy!" (I'm joking, the message shall be like "You have new task(s). Please check.") Just it! </p>

<p>I've done javascripts invokings with <code>ClientScript.RegisterStartupScript</code>, and <code>Attributes.Add</code> for buttons. But now I want to call the javascript functions (wich will alert the user that he has things to do) from the midle of a sub (that is executed in a thread), without a submit, load or click event. How can I do it?</p>

<p>Thanks!</p>
