473,698 Members | 2,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2966
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*****@micros oft.com> wrote in message
news:uH******** ******@TK2MSFTN GP10.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
2825
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 and update every few seconds. What options do I have to put into place such a feature?
0
1863
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. Particularly regarding the streaming of data between IE client and webserver. Here is what I am attempting to do.
4
16320
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
2926
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 from time to time. I need an update delay of about 1s.
3
5906
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 little stumped with which direction to take and advice would be greatly appreciated. I think this is a generally interesting problem but I haven't seen a post this long here before :S I have developed half of the admin interface for an e-commerce
4
2204
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. The system is a dispatch application. When a call comes in, the operator will assign a vehicle(s) to the call and the system should push a message out to each vehicle selected.
8
11178
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 mechanism of client checking for messages in interval... thanks
5
2465
by: Mark Goldin | last post by:
Can I create a push server using ASP technology? Thanks
0
1355
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 pass between processes. My project is a network gate server with many complex logic handler behind, so I use multiprocessing to handle them separately and send back the clients later when done. To use the server multicore cpu I tried to separate...
0
8598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9016
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8856
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2321
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.