c# update current time,days,date
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    todayDate.Text=DateTime.Now.toString();
}
</code></pre>

<p>Output</p>

<blockquote>
  <p>10:28AM 9/28/2011</p>
</blockquote>

<p>the current time is never update, the result is static, how do i set a interval in c# in order to update current time?</p>

<p>updated information</p>

<p>this is my ajax updated timer code</p>

<pre><code>  &lt;ajax:ToolkitScriptManager ID="scriptmanager1" runat="server"&gt;
</code></pre>

<p>
       </p>

<pre><code>    &lt;asp:UpdatePanel runat="server" id="TimedPanel" updatemode="Conditional"&gt;
        &lt;Triggers&gt;
            &lt;asp:AsyncPostBackTrigger controlid="UpdateTimer" eventname="Tick" /&gt;
        &lt;/Triggers&gt;
        &lt;ContentTemplate&gt;
            &lt;asp:Label runat="server" id="DateStampLabel" /&gt;
</code></pre>

<p>and i called it by using</p>

<pre><code>protected void UpdateTimer_Tick(object sender, EventArgs e)
{
    DateStampLabel.Text = DateTime.Now.ToString() + "  "+DateTime.Today.DayOfWeek.ToString(); 


}
</code></pre>

<p>output is exactly what i want, but the effect not exactly what i want, cause when user clicked on some button,the label will blink, this like telling the user the page is reloading, so i wondering is that any idea can deliver update time from server? or just refresh partial pages?</p>
