Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a news and announcement web part that I would liek to refresh every 5 or 10 minutes so users get the latest information. I have a bunch of asp controls within an update panel's contenttemplate. What code do I need to refresh or update the web part every 5 or 10 minutes?

  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate
   <div>
  <table>
   <tr>
    <asp:Repeater ID="repAnnouncements" runat="server">
        <ItemTemplate>
            <td style="padding-right:15px; padding-top:1px;">
                <asp:HyperLink ID="hypImageEditLink" runat="server">
                    <asp:Image ID="imgLink" runat="server" Width="150px" Height="110px" ImageUrl='<%#Eval("Images")%>'/>
                </asp:HyperLink>
                <br/><br />
                <asp:HyperLink ID="hypTextEditLink" runat="server" Text='<%#Eval("Title")%>' CssClass="TitleStyle"/>
                <asp:HiddenField ID="ItemID" Value='<%#Eval("ID") %>' runat="server" />

            </td>
           </ItemTemplate>
    </asp:Repeater>
  </tr>
 </table>
   <asp:Label ID="test" runat="server" Visible="false" />
    </div>
    ></ContentTemplate>
   </asp:UpdatePanel>
share|improve this question

1 Answer 1

up vote 5 down vote accepted

If you just want to update using the ASP.NET AJAX UpdatePanel, then just add a Timer Control

share|improve this answer
1  
Check a similar question here - sharepoint.stackexchange.com/questions/27484/… –  Deepu Nair Apr 3 '12 at 16:17
    
Thanks again Per! –  user7400 Apr 3 '12 at 17:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.