Click here to Skip to main content
12,246,000 members (39,578 online)
Rate this:
 
Please Sign up or sign in to vote.
How to Refresh a Repeater without Page Reload using ASP.NET or JS or Jquery.
Posted 13-Oct-12 1:23am
Edited 13-Oct-12 1:24am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You can use an AJAX Update Panel and place the Repeater control with a Refresh button inside it. Clicking the button present inside the UpdatePanel will do a partial page refresh.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Hi,

If you are using Ajax Update panel it will post your request ajaxified. You do not feel postback on the server. basically it will post your request on the server using javascript internally. And response is updated on the page. If you place any of the control inside Update panel and each request from the update panel will be send as ajaxified. So if you need to update your update panel content you can use UpdagePanel.Updage[^] method to manually cause update of content inside panel.

Hope this information helps you,
Thanks
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

<asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown">
        </asp:scriptmanager>
        <asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
            <contenttemplate>
                <asp:timer id="Timer1" runat="server" interval="1000" ontick="Timer1_Tick">
                </asp:timer>
		 <asp:gridview id="GridView1" runat="server" allowpaging="True" pagesize="20">
		   </asp:gridview>
		 <asp:label id="Label1" runat="server" text="Label"></asp:label>
            </contenttemplate>
        </asp:updatepanel>

Replace Gridview with Repeater control
and in code behind

protected void Timer1_Tick(object sender, EventArgs e)
{
        BindGrid();
}
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 13 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100