Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 23rd, 2007, 11:27 AM
Registered User
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending event from Server To client


I would like to know how to implement situation when the Web server need to send some event to the client browser because of some changes in the DB.

My question are:

1.How could I get the notification of this event from the client if the client itself isn't asking the server ??

2.Is the only way to solve this problem is to poll the server at intervals ??

3.Is it recommended in that case to use Win Forms because Web Forms can't handle this scenario ??



Old January 23rd, 2007, 01:57 PM
Authorized User
Join Date: Apr 2005
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts

As far as any kind of listening, that would involve polling from any app. It can be done from a web client with polling but you would need AJAX to prevent the page from popping every time it polls. Web based chat programs do the same thing. They either create a JSP chat client that polls the chat server or AJAX it to receive only the data needed to populate the fields you are polling to get.

Similar Threads
Thread Thread Starter Forum Replies Last Post
'onclick' and 'dblclick' both client side event in myself.panku ASP.NET 2.0 Professional 1 June 2nd, 2008 12:40 PM
WS client sending compressed request? wakeup .NET Web Services 0 October 25th, 2007 04:37 AM
sending streaming audio files to client browser hotshot_21 ASP.NET 1.0 and 1.1 Professional 1 March 28th, 2006 12:29 AM
sending a file from swing client to servlet sid_ Servlets 0 March 2nd, 2005 05:18 PM
sending files to client mhuman1 ASP.NET 1.0 and 1.1 Basics 1 August 26th, 2004 11:09 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.