Groups | Blog | Home
all groups > asp.net building controls > april 2006 >

asp.net building controls : ASP.NET 2.0 - How to build a Monitoring Application


Auto
4/17/2006 8:59:17 PM
Hello to everybody,

I would like to know how to build an ASP.NET 2.0 Application that show me
some data from a SQL Server Table and refresh it every one or two seconds ?
With autorefresh ? May be it is not so elegant...
I heard somthing about "Client Callback Manager", could this be good for
that ? If yes, how ?
Has the DataGrid got the autorefresh feature also, after the "Client
Callback Manager" for the sorting columns?
Can some good guy help me ?
Examples are welcomed :-)

Thanks.
God bless you.

Auto.

Steve C. Orr [MVP, MCSD]
4/17/2006 11:00:09 PM
Here are some options:

You could use a refresh meta tag to refresh the page every so often:
<meta http-equiv="refresh" content="3">

(this example refreshes the page every 3 seconds)
Here's more info:
http://msdn2.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlmeta(VS.80).aspx

You could use a JavaScript timer to refresh the page every so often:
http://www.crowes.f9.co.uk/Javascript/timer.htm

If you want to get really fancy and only update part of the page, you could
use AJAX:
http://SteveOrr.net/articles/Ajax.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net



[quoted text, click to view]

Auto
4/18/2006 12:00:00 AM
Thank you very much sir, i will look at them.

Best Regards,

Auto.

[quoted text, click to view]

AddThis Social Bookmark Button