By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,456 Members | 1,742 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,456 IT Pros & Developers. It's quick & easy.

Polling mechanism

P: n/a

Hi everyone,

I would like to be able to send updates to my web page from the server. If I understood correctly, this is not possible to achieve in a web environment, unless some sort of polling mechanism is used. I read a few articles and some of them suggest using some Javascript, while other suggest using Web Services. Some ways to achieve some kind of polling mechanism is on this document: http://msdn.microsoft.com/library/de...nethowto08.asp

However, I am wondering what the best option would be for implementing a continuous polling mechanism that frequently updates the web page. What are the suggested options?

Thanks.
Mike

Aug 4 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Take a look at either Anthem.NET or ATLAS. Anthem has a Timer control you can
use for this. I don't do much with ATLAS but I am sure it has something
similar.
ATLAS can be found at ASP.NET and Anthem.NET is on sourceforge.net
Pete

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Mike" wrote:
>
Hi everyone,

I would like to be able to send updates to my web page from the server. If I understood correctly, this is not possible to achieve in a web environment, unless some sort of polling mechanism is used. I read a few articles and some of them suggest using some Javascript, while other suggest using Web Services. Some ways to achieve some kind of polling mechanism is on this document: http://msdn.microsoft.com/library/de...nethowto08.asp

However, I am wondering what the best option would be for implementing a continuous polling mechanism that frequently updates the web page. What are the suggested options?

Thanks.
Mike
Aug 4 '06 #2

P: n/a
The most common solution these days is AJAX.
Here's more info on implementing Ajax in ASP.NET 2.0
http://SteveOrr.net/articles/Ajax.aspx

If you want to go bleeding edge you could use Atlas:
http://atlas.asp.net

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Mike" <no**@none.comwrote in message news:ub**************@TK2MSFTNGP03.phx.gbl...

Hi everyone,

I would like to be able to send updates to my web page from the server. If I understood correctly, this is not possible to achieve in a web environment, unless some sort of polling mechanism is used. I read a few articles and some of them suggest using some Javascript, while other suggest using Web Services. Some ways to achieve some kind of polling mechanism is on this document: http://msdn.microsoft.com/library/de...nethowto08.asp

However, I am wondering what the best option would be for implementing a continuous polling mechanism that frequently updates the web page. What are the suggested options?

Thanks.
Mike

Aug 4 '06 #3

P: n/a
Hi,

Mike wrote:
>
Hi everyone,

I would like to be able to send updates to my web page from the server.
If I understood correctly, this is not possible to achieve in a web
environment, unless some sort of polling mechanism is used. I read a few
articles and some of them suggest using some Javascript, while other
suggest using Web Services. Some ways to achieve some kind of polling
mechanism is on this document:
http://msdn.microsoft.com/library/de...nethowto08.asp

However, I am wondering what the best option would be for implementing a
continuous polling mechanism that frequently updates the web page. What
are the suggested options?

Thanks.
Mike
Just to be complete and in addition to what others already said, note
that using Web services implies using JavaScript.

Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 5 '06 #4

P: n/a
I’ve been using Ajax controls from Telerik (www.telerik.com) to accomplish
that.
They work well for me!

"Mike" wrote:
>
Hi everyone,

I would like to be able to send updates to my web page from the server. If I understood correctly, this is not possible to achieve in a web environment, unless some sort of polling mechanism is used. I read a few articles and some of them suggest using some Javascript, while other suggest using Web Services. Some ways to achieve some kind of polling mechanism is on this document: http://msdn.microsoft.com/library/de...nethowto08.asp

However, I am wondering what the best option would be for implementing a continuous polling mechanism that frequently updates the web page. What are the suggested options?

Thanks.
Mike
Aug 5 '06 #5

P: n/a
technically, you _can_ send an "update" to the client from the server.

you'd need to use a java applet or flash control running on the client,
that you could send messages to from the server

flash control runs in browser
connects to web server, leaves channel open
web server sends a message to flash control when it wants
flash control raises some even that is handled in javascript
do stuff - such as update your grid
Mike wrote:
Hi everyone,

I would like to be able to send updates to my web page from the server. If I understood correctly, this is not possible to achieve in a web environment, unless some sort of polling mechanism is used. I read a few articles and some of them suggest using some Javascript, while other suggest using Web Services. Some ways to achieve some kind of polling mechanism is on this document: http://msdn.microsoft.com/library/de...nethowto08.asp

However, I am wondering what the best option would be for implementing a continuous polling mechanism that frequently updates the web page. What are the suggested options?

Thanks.
Mike

------=_NextPart_000_011F_01C6B7DF.DA2F70D0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 1715

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Hi everyone,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I would like to be able to send updates to my web
page from the server. If I understood correctly, this is not possible to achieve
in a web environment, unless some sort of polling mechanism is used. I read a
few articles and some of them suggest using some Javascript, while other suggest
using Web Services. Some ways to achieve some kind of polling mechanism is on
this document: <A
href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenethowto08.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenethowto08.asp</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>However, I am wondering what the best option would
be for implementing a continuous polling mechanism that frequently updates the
web page. What are the suggested options?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2>Mike</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_011F_01C6B7DF.DA2F70D0--
Aug 5 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.