Update a control's value from a static class in ASP.NET
<p>Say that I have an ASP.NET page with a Label control and the following static class which executes a scheduled job:</p>

<pre><code>public static class Job
{
    // The Execute method is called by a scheduler and must therefore 
    // have this exact signature (i.e. it cannot take any paramters).
    public static string Execute()
    {
        // Do work
    }
}
</code></pre>

<p>When the job is done, the execute method should update the value of the Label control on the page.</p>

<p>I've done some research and the only way seems to be to use HttpContext.Current.CurrentHandler. However, this is undesirable for me since it can potentially return null. </p>

<p>Since the Execute method cannot take any parameters (see comment), passing the Page instance as an argument is not an option.</p>

<p>Is there any other way to update the control from the static class?</p>

<p>NOTE: the Execute method must be static because I'm creating an EPiServer scheduled job, which requires a static Execute method (that doesn't take any parameters).</p>
