I am learning Visual Studio 2010. I want to make a webpage that shows the contents of a table in my database, and updates asynchronously as the data in the table updates. I am guessing I want to make either a “WCF Service” or a “Web Form”. Am I correct?
I’m starting this application from scratch so there’s no existing code I need to mesh with. Just want to get the basic functionality working. The main thing I want is to have that asynchronous update.
You do not want a WCF Service. A Web Form or an MVC Application is the way to go.
I prefer MVC Application since it’s just nice to use, but a Web Form will achieve what you’re looking for equally well.
In order to get the Asynchronous bit working, you either use the Ajax Toolkit, or better yet, wire up some jQuery/Mootools, or something similar.
Here’s another (similar) SO question and the answers point to ways to achieve the async bit.
asp.net webforms ajax update gridview