Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have tried in controller.. But, its not working. Without setting setInterval in jquery. How to do it? Once the database is updated. Automatically the screens should refresh.. Please help me to do it
Ex.: cricbuzz scorecard website


What I have tried:

i have tried in controller.. But, its not working. Without setting setInterval in jquery. How to do it? Once the database is updated. Automatically the screens should refresh.. Please help me to do it
Ex.: cricbuzz scorecard website
Posted
Updated 1-Jul-19 23:58pm
Comments
Maciej Los 2-Jul-19 5:47am    
"its not working" is not descriptive at all!
Note: we haven't access to your screen and we can't read in your mind. You have to be more specific if you want our help.

Take a look at SignalR and check if it helps.
 
Share this answer
 
You did not provide enough information about your issue. Nevertheless...

Usually, when you develop an ASP.NET MVC application with CRUD operations, you create separate view to each operation. Then you return to the "main view". Newly inserted/updated data are displayed in that view. See:
Perform List, Insert, Update and Delete in a Single View in ASP.NET MVC | BinaryIntellect Knowledge Base[^]

But, if you want to create application which updates its view based on other users interaction, you have to use SignalR and SqlDependency class. See: ASP.NET MVC 5 SignalR, SqlDependency and EntityFramework 6[^]
 
Share this answer
 
Comments
Member 10650619 2-Jul-19 23:59pm    
I don't have any issue.
One dropdownlist in page. I have binded the values to dropdownlist from database table in controller. While the page is in view, i have added one more record in table. I do not refresh the page, automatically the added record to be shown in the dropdownlist.
Understand?

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