ASP.NET using C#, auto refresh div in a Repeater
<p>I use a Repeater control to list the threads.</p>

<p>And there is a Div with a Label control for displaying the posted date in Repeater ItemTemplate.</p>

<p>here is what I'm doing now, but it's not auto refresh specific div independently. It's auto refresh the whole page.</p>

<pre><code>setInterval(function () { $(".refresh").load(location.href + " .refresh"); }, 5000);


&lt;asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound"&gt;
      &lt;HeaderTemplate&gt;

      &lt;/HeaderTemplate&gt;
      &lt;ItemTemplate&gt;
            ..........
            .............

          &lt;div class="date"&gt;&lt;asp:Label ID="post_date_LB" runat="server"&gt;&lt;/asp:Label&gt;&lt;/div&gt; 
            //display the posted date for each thread, And I want it to auto refresh independently not the whole page.

          ...............
          ...................

      &lt;/ItemTemplate&gt;
      &lt;FooterTemplate&gt;

      &lt;/FooterTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>I want the posted date display something like this: posted 10 minutes ago, an hour age, etc.</p>

<p>so I need a auto refresh div.</p>

<p>Is there any idea how to let my div in a repeater could auto refresh independently?</p>

<p>If using js or jquery, I think there might be a issue with DIV duplicate id.</p>

<p>Hope there is a solution for this.</p>

<p>Thanks in advance! :)</p>
