Hi I have a requirement that i need to refresh a MVC view after every 2 seconds , so what approach can i use i have done it using javascript function it works well , but on IE and firefox it gives flickering problem, My view does not contain only the static data instead it is calling a controller method which shows the count of users after every two seconds . below is the approach i am using
function timedRefresh(timeoutPeriod) {
setTimeout(function () {
location.reload(true);
}, timeoutPeriod);
}
---------------
Salman BegRank #284 · 8.8K reputationPosted Dec 15, 2019, 2:16 AM EST
Mark TaborRank #914 · 2.3K reputationPosted Dec 15, 2019, 7:10 AM EST
Dr. Akbar Niazi Teaching Hospital
*@TOKEN NUMBER
@customer.Counter_value