469,917 Members | 1,746 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

Is this possible with .NET?

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
Jul 21 '05 #1
5 1174
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
"Aaron" <ku*****@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Jul 21 '05 #2
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/
"Aaron" <ku*****@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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


Jul 21 '05 #3
Just to clarify, I'm making a web page so html and javascript over http is
my only option.
"Aaron" <ku*****@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Jul 21 '05 #4
Aaro

I've never used it, but maybe using a refresh header in your http might do the trick

It's covered in a slightly different context in the following article

http://msdn.microsoft.com/architectu...enethowto08.as

Hope that help

Ian
Jul 21 '05 #5
Sure, Aaron. See the following article:

http://www.webreference.com/js/column98/

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Aaron" <ku*****@yahoo.com> wrote in message
news:#H**************@tk2msftngp13.phx.gbl...
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

Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Julia Briggs | last post: by
36 posts views Thread by rbt | last post: by
1 post views Thread by AAA | last post: by
25 posts views Thread by Piotr Nowak | last post: by
14 posts views Thread by bjorklund.emil | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.