Click here to Skip to main content
15,896,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to Refresh a Repeater without Page Reload using ASP.NET or JS or Jquery.
Posted
Updated 13-Oct-12 0:24am
v2

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.
 
Share this answer
 
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
 
Share this answer
 
ASP.NET
<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

C#
protected void Timer1_Tick(object sender, EventArgs e)
{
        BindGrid();
}
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900