i have an repeater and show some records in repeater, but 1 column value has been changed in database.
Then i want to update that value in repeater without page load on every second.
how can i achieve it.
Repeater value
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

rupesh gourRank #6,510 · 264 reputationPosted Feb 12, 2024, 4:55 AM EST
please give any example?
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 14, 2024, 12:24 AM EST
Sure, here’s how you can use an
UpdatePanelin your ASP.NET page and JavaScript to periodically update theRepeater:ASP.NET:
JavaScript:
setInterval(function() { $.ajax({ type: "POST", url: "YourPage.aspx/YourMethod", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(response) { // Update your Repeater here with the new data // For example, you might do something like this: $('#Repeater1').html(response.d); }, failure: function(response) { alert('There was an error with the AJAX request.'); } }); }, 1000); // 1000 milliseconds = 1 secondIn the ASP.NET code, replace
Your Repeater Items Herewith the actual items you want to display in theRepeater.In the JavaScript code, replace
YourPage.aspx,YourMethod, and#Repeater1with your actual page name, method name, and Repeater ID.Remember to include the jQuery library in your project for the JavaScript code to work.
Please note that this is a very basic example and might need to be adjusted based on your specific requirements and setup.