1

I am confused how I would refresh the HTTP sessions on the client side whenever the data is updated on the server side. I am using ASP.net with C# and SQL Server DB. I don't want to implement a timer on the client side and want to push notifications from server side.

Just want to know if its possible and a high level understanding of it will be enough. Thank you.

2 Answers 2

6

I think you're looking for a Comet solution like WebSync.

Take a look at this answer's to this question.

Sign up to request clarification or add additional context in comments.

Comments

0

HTTP, by definition, was not designed to "PUSH"... rather, it is designed, from the ground-up to PULL or POLL changes.

One of the major reasons for this is the ability to massively scale via caching on multiple levels (content storage level, web server level, proxy server level, client level, etc.)

To create a system where you PUSH changes, you'll have to resort to TCP/IP.

But, you do have a couple options for this:

  • Flash (Cross-Browser, Cross-Platform, Widely Supported, Requires Plugin)
  • Silverlight (Cross-Browser, Mac/PC, Less Supported than Flash, Requires Plugin)
  • ActiveX (IE, PC, Requires special permissions most times)

Can all be used to create a connection with the service and wait for updates to be pushed.

Emerging Options:

2 Comments

Great answer. I want to use Silverlight for the client side. If I use Silverlight that retrieves data from the server side asp.net application then instead of polling every second on silverlight end, how would you suggest I should implement pushing data to silverlight front end?
There is a great answer on specifically that here: stackoverflow.com/questions/640488/… If you like my answer, would you be so kind as to upvote it and click the little check mark next to it, marking it as the answer : ) Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.