Click here to Skip to main content
13,552,325 members
Rate this:
Please Sign up or sign in to vote.
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.
Posted 28-Jan-13 12:43pm
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180515.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100