Is this possible with .NET?

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

Normally if you want to retreive some data say a html page you would have to
send a request to the server.
For example a stock ticker sends a request and the server sends back some
data every minute.
My question is, is it possible for the server to send back data without
having the client send a request first.
This way the client don't have to refresh every minute, and just receives
when new data comes in.
Is this even possible with http protocal?

Your help is greatly appreciated.
Aaron
 
Hi Aaron-

Using HTTP probably would not be the most effective way to implement this.
What you could do is make the server maintain a list of client's IP
addresses, and run the client program on each of these machines. The client
program could listen on a port and update the stock data based on what is
received there, while the server would send the new information to each of
the clients after n minutes. Of course, depending on your circumstances,
you might want to add some sort of authentication as this can be insecure.

Robert
 
You would need to embed a .NET smart client inside your HTML page so that
the smart client object talks to the server over HTTP without requiring a
browser page refresh. A downside is that the client has to have Internet
Explorer and the .NET Framework installed.

Here are a couple of articles applications that should get you started:

Code Access Security and Distribution Features in .NET Enhance Client-Side
Apps

http://msdn.microsoft.com/msdnmag/issues/02/06/rich/

Welcome to Wahoo!

http://www.sellsbrothers.com/wahoo/
 
Just to clarify, I'm making a web page so html and javascript over http is
my only option.
 
Back
Top