Click here to Skip to main content
15,886,771 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi

I am creating a table in MVC4 and I want to update data in the table at regular Intervals.
How can I do this using XML file.

I have created one job that is regularly updating the XML file for the same purpose.

Below is the XML File:

-<marketdata date="12032015">


-<commodity commodities="All">

<CRUDEOILM Time="17:50:27" Low="3016" High="3059" Open="3016" perctChange="1.57" Change="47" Price="3047"/>

</commodity>

</marketdata>


For Reference check http://market.mcxdata.in/[^]

How can this be achieved.

Thanks
Posted
Updated 12-Mar-15 4:14am
v2
Comments
Sinisa Hajnal 12-Mar-15 10:25am    
However you're showing the XML data on the web. Just refresh the page periodically.
mayank.bhuvnesh 12-Mar-15 10:30am    
Hoe to display data from xml to table???
Sinisa Hajnal 13-Mar-15 2:50am    
That wasn't the question, I assumed you know how to do it. You asked how you could refresh the datatable not how to show XML. This is very easy to find, please put some effort into it and you'll get the solution. When you get the data on the page, come back and ask again about refreshing it.

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