472,328 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 1230
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Julia Briggs | last post by:
I am struggling to create a PHP function that would take a specified image (JPG, GIF or PNG) from a link, and resize it down to a thumbnail so it...
36
by: rbt | last post by:
Say I have a list that has 3 letters in it: I want to print all the possible 4 digit combinations of those 3 letters: 4^3 = 64 aaaa
20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external...
7
by: Andrzej | last post by:
Is it possible to call a function which name is given by a string? Let assume that I created a program which call some functions for example ...
2
by: Bhupesh Naik | last post by:
This is a query regarding my problem to make a spell and grammar check possible in text area of a web page. We have aspx pages which are used to...
1
by: AAA | last post by:
hi, I'll explain fastly the program that i'm doing.. the computer asks me to enter the cardinal of a set X ( called "dimX" type integer)where X is...
25
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by...
4
by: RSH | last post by:
Okay my math skills aren't waht they used to be... With that being said what Im trying to do is create a matrix that given x number of columns,...
7
by: Robert S. | last post by:
Searching some time now for documents on this but still did not find anything about it: Is it possible to replace the entry screen of MS Office...
14
by: bjorklund.emil | last post by:
Hello pythonistas. I'm a newbie to pretty much both programming and Python. I have a task that involves writing a test script for every possible...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.