Dashboard screen should auto refresh in every 5-10 second.
Please explain in detail.
Dashboard screen should auto refresh in every 5-10 second.
Please explain in detail.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Cr BhargaviPosted Jul 30, 2023, 7:58 AM
To update a dashboard in real-time in an MVC 5 application, you can use AJAX to periodically fetch updated data from the server and refresh the dashboard. Here's a step-by-step guide to achieving real-time updates in your MVC 5 application:
1. Set up a Controller Action: Create a controller action that returns the data needed for your dashboard. This action should return data in a JSON format.
2. Create a View for the Dashboard: Develop an MVC View that will render the dashboard using the data received from the controller action.
3. Implement AJAX Refresh: Use JavaScript and AJAX to periodically fetch updated data from the server and update the dashboard without a full page reload.
Vishal YelvePosted Jul 28, 2023, 2:07 PM
Hi Aryan,
Do refer below article
https://www.c-sharpcorner.com/UploadFile/2b481f/auto-refresh-partial-view-in-Asp-Net-web-api/
https://www.mindstick.com/articles/1132/auto-refresh-partial-view-in-asp-dot-net-mvc
https://www.encodedna.com/javascript/auto-refresh-page-every-10-second-using-javascript-setInterval-method.htm
https://www.codeproject.com/Questions/458759/How-to-automatically-refresh-a-partial-view-when-d
Mohammad HussainPosted Jul 27, 2023, 1:58 PM