I want to use the web to stream some data to a browser, like streaming stock quotes for example.
Anyone know how to do this preferably with .net?
Printable View
I want to use the web to stream some data to a browser, like streaming stock quotes for example.
Anyone know how to do this preferably with .net?
I've read your post before you edited it...
What you are trying to do is not really streaming... You are trying to update some values on the browser every couple of seconds right ?
Well, why don't you make in JavaScript something to realod the values in the textboxes in the html document ?
Why i'm saying this ? Because the server cannot GIVE data to the browser, instead... the browser TAKES data from the server... that's how HTTP protocol works... you have to make the browser ask for the data...
For those who want to be precise...
Well... actually i was not entirely correct... the server gives data... but only when the browser is asking for it...
It's because the browser does not keep a "session" connection up... whenever you browse a web-page the connection is on only while it's downloading... once it's done downloading, it's closing the conection right away...
hmmm, I understand this yet it is possible to recieve radio stations streamed live and here for example it is possible to receive realtime quotes:
http://cbot.jfnetwork.com/home.htm?et=rd
Originally the data was delayed for 10 secs being a client side poll delay and they only charged $10 per month, but these guys have recently upgraded to realtime and are now charging $30. I wonder how they do this?
i don't know how theirs look like, but perhaps a java applet could do what you want.
With Java, you can keep a connection open...
ahh... BuggyProgrammer, you were only a few seconds faster then me :D
and .net is very similar to Java.... so I guess if it is possible with Java then it should be possible with .net. I wouldn't mind finding out how though.
Java runs in the browser.... i'm not sure about .Net
ASP.NEt works entirely serverside that maybe a problem for you.
what does the crowd say???
look they are all holding signs above their head, we'll need a camera shot to work out what they are saying...
Switch to the helicopter shot...
switching now....
"You shoulda learned Java instead of sticking with .Net"
Damn.