473,387 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

push data from server to client

Hi all,

I'm looking for a way to inform clients of a server side event on my
website. What I want to do is to update a user's webpage when a process logs
in on the server. Untill now I use a refresh statement in the client's html
code, and I read from the database in the Page_Load( ). On every postback
database contents are read and used to keep the site up to date. What I want
to do is to let the server push the updates to the clients, instead of using
a refresh statement on the client side.

Any ideas on how to accomplish this?

Regards,

Jaco
Nov 18 '05 #1
1 2950
wl
Jaco,

Due to the HTTP protocol this is not possible.
You can only poll the server and see whether any change occurred.

Even if you succeed in pushing a message to the client (see below) you get
into trouble with firewalls etc and local IP addresses.

The best thing you could do is write a Java applet that polls for a small
message every x seconds (without needing to refresh the entire page). When
the Java applet sees the "refresh" flag is set at the server, it might
communicate with JavaScript on your page ("Live Connect" this is called, if
I'm not mistaking) to have your page refreshed entirely.

Wim
"Jaco Bregman" <so*****@microsoft.com> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
Hi all,

I'm looking for a way to inform clients of a server side event on my
website. What I want to do is to update a user's webpage when a process logs in on the server. Untill now I use a refresh statement in the client's html code, and I read from the database in the Page_Load( ). On every postback
database contents are read and used to keep the site up to date. What I want to do is to let the server push the updates to the clients, instead of using a refresh statement on the client side.

Any ideas on how to accomplish this?

Regards,

Jaco

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Nick K. | last post by:
I am looking for architecture to push information from a server to a client browser. This information would be in the form of an alert. What I do not want to do is have the browser be on a timer...
0
by: JR | last post by:
Hello, Although I consider myself a proficient C++ programmer (and am getting better everyday at C# :-) I am new to and having a little trouble with some of the concepts behind ASP and ASP.NET....
4
by: Susan Baker | last post by:
Is it possible to "push" data from a server to a client, using PHP server side scripting?. An example script will be very useful. Thanks
7
by: giangiammy | last post by:
hi all, I need to implement a web page with a table: the page structure i fixed, the tables field are updating from time to time. The table could be quite big, but just some fields change...
3
by: petermichaux | last post by:
Hi, I am trying to put together the last major pieces of my project's puzzle. This is more website/client-side architecture than JavaScript syntax but I hope this is a good place to ask. I'm a...
4
by: Ben Kim | last post by:
Hello all, We are re-developing a software product that requires push technology (wireless and hardwired). Microsoft used to support this technology in IE but dropped it for whatever reason. ...
8
by: semedao | last post by:
Hi , I need to develop some feature of web service that can notify client - "Push" operation - and fast somebody know if it's possible , and how? When I say "Push" I mean - pure push :) , not...
5
by: Mark Goldin | last post by:
Can I create a push server using ASP technology? Thanks
0
by: davy zhang | last post by:
I wrote this server to handle incoming messages in a process using multiprocessing named "handler", and sending message in a Thread named "sender", 'cause I think the async_chat object can not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.