How to pass already stored data in the database each time the website is run in ASP.net MVC?? use ADO.NET[^] (or) LINQ to SQL | Microsoft Docs[^] (or) How to pass already stored data in the database each time the website is run in ASP.NET MVC?[^] refer this example, Asp.Net MVC Get (Display) Data from Database using ADO.NET [^]
i want it to be executed for the already stored data each time i run the application. Add your code in the starting page of the application eg (Home Controller, Index Action)
Home
Index
Also is there any way to change in such a way that this stored data get passed into the controller in a timely manner. Say i want this stored data to be passed into the methods in controller every five minutes once However the action will be triggered from the view page, so you shall hit the controller for every 5 minutes using Ajax Call[^] and Window setInterval() Method[^] and get the latest data from the db using anyone of the above methods.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)