Click here to Skip to main content
15,616,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
First let me be honest - I haven't wrote any code for this - I am only looking for an advice... I am C# developer.
I am planning to develop an application (Web) and want automatic update like Facebook (FB), on FB when a friend post/comment, the page does not flicks, the time and posting of comments automatically. I looking for something like that - I am not doing a chat application. Explaining all will take time - It's a personal project.

A reference to reading material will be helpful, thanks.
Updated 28-Jan-13 13:11pm
AspDotNetDev 28-Jan-13 19:36pm    
FYI, I deleted the text you posted as an answer, as it should have been posted as a comment on my answer instead. Also, good luck. :-)
Boipelo 28-Jan-13 20:27pm    
Thanks, I was also advised to do so on other posts. Long time I have been here and missed(didn't not of) changes - I also lost points for that! Thanks once more...

1 solution

There are many ways to accomplish what you're after, so I'll just give a brief summary of one approach.

You'd use setTimeout or setInterval (in JavaScript) to periodically make AJAX calls to a web service to check for new content. When you get new content from the web service (perhaps in the form of JSON), you'd use JavaScript (perhaps jQuery) to update the DOM elements so the page shows the new content.

If you want reading material, I recommend Googling the above bolded terms. Probably best to read a book or two as well; perhaps one of them about AJAX and another that involves AJAX/web services.

ASP.NET MVC would be an alternative to web services, as it too can easily return JSON from the server via AJAX to be processed by JavaScript. For that, you'd want to look into returning JSON from action methods.
Share this answer
member60 28-Jan-13 22:53pm    
my 5!

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