473,387 Members | 1,535 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.

refresh a page every so often

I want to refresh the text of a label box, say, every second. Is there a
way to maintain some kind of persistent connection to the server and the
codebehind in order to pull this off or am I forced to use some ugly
client-side page-refresh scription?

Thank you for any advice,
Laszlo
Nov 17 '05 #1
3 3242
You might be able to use something like XmlHttp, to do a call to a page from
client side javascript.

Another option, is to place the label on its own page, in an iframe. And
refresh the page in the iframe ever X seconds. This will have minimal
flashing, and will probably be barely noticeable.

"Laszlo Szijarto" <ls*******@nospam.mrdoc.cc> wrote in message
news:e5**************@TK2MSFTNGP11.phx.gbl...
I want to refresh the text of a label box, say, every second. Is there a
way to maintain some kind of persistent connection to the server and the
codebehind in order to pull this off or am I forced to use some ugly
client-side page-refresh scription?

Thank you for any advice,
Laszlo

Nov 17 '05 #2
You are forced to use some ugly client side page refresh, unless you use
another ugly option such as hosting a special ActiveX control on your page
that can handle a more complex (persistent) network connection.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Laszlo Szijarto" <ls*******@nospam.mrdoc.cc> wrote in message
news:e5**************@TK2MSFTNGP11.phx.gbl...
I want to refresh the text of a label box, say, every second. Is there a
way to maintain some kind of persistent connection to the server and the
codebehind in order to pull this off or am I forced to use some ugly
client-side page-refresh scription?

Thank you for any advice,
Laszlo

Nov 17 '05 #3
Thank you both. I'll check into the XML HTTP stuff. Or I may just have to
go the way of using an embedded ActiveX-like control.

Thanks again,
Laszlo

--
Laszlo Szijarto
Software Engineer
Analex Corporation
2001 Aerospace Parkway
Cleveland, Ohio 44142
Phone: 216-925-1127

NOTICE: The information contained in this E-mail and any attachments is
subject to Export Administration Regulations (EAR) and must be handled in
accordance with its EAR classification. If its EAR classification is not
specified, the information contained in this E-mail and any attachments
should not be disseminated to any non-U.S. person because the appropriate
EAR classification may be more restrictive than "Public Domain."

"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
You are forced to use some ugly client side page refresh, unless you use
another ugly option such as hosting a special ActiveX control on your page
that can handle a more complex (persistent) network connection.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Laszlo Szijarto" <ls*******@nospam.mrdoc.cc> wrote in message
news:e5**************@TK2MSFTNGP11.phx.gbl...
I want to refresh the text of a label box, say, every second. Is there a way to maintain some kind of persistent connection to the server and the
codebehind in order to pull this off or am I forced to use some ugly
client-side page-refresh scription?

Thank you for any advice,
Laszlo


Nov 17 '05 #4

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

Similar topics

19
by: Jay | last post by:
I'm trying to refresh browser when some new information is available in DB. is there any way to force to refresh browser? Thanks. -Kev
1
by: SPQR | last post by:
Some time ago I set up a webcam at home and a page on my site. Every three minutes the webcam would take a picture of my backyard and ftp it to my site where it was displayed on my webcam page. ...
2
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
3
by: Kevin | last post by:
Hi guys, I want to refresh some pages every 2 seconds. however, these html pages are not in my site, they could be any pages from yahoo.com or msn.com. I can create a page, which redirect to...
8
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
12
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
10
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every...
4
kelleyvanevert
by: kelleyvanevert | last post by:
Hello everyone, This question is often asked, and I know there are lots and lots of answers that I could be using, but I just want a clear good answer. I am making a website (for playing a game...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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,...

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.