Self refreshing user control/custom control.

J

Jensen Bredal

Hello,
I need to display self refreshing information on a web page written with
asp.net. I would image that the info would be displayed either as part of a
user control or a web control.
How can this be done? The information will come from a database and the
displaying should loop throug a table in
the database.

Many thank in advance
JB
 
H

Hans Kesting

Jensen said:
Hello,
I need to display self refreshing information on a web page written
with asp.net. I would image that the info would be displayed either
as part of a user control or a web control.
How can this be done? The information will come from a database and
the displaying should loop throug a table in
the database.

Many thank in advance
JB

You can't have a (web)control refresh just itself, because from the browser's
point of view it is just a section of html code.
You *can* have the complete page refresh itself with this in the <head>:
<meta http-equiv="refresh" content="10">
(where the "10" means a 10-second interval, adjust as needed)

If you need to have just a part of the page refresh itself, you need to
write that part as an iframe, containing a refreshing aspx.

(okay, you could also do a lot with client-side javascript and similar
technologies, but that is a lot more work)

Hans Kesting
 
D

Dimitri Glazkov

Jensen,

Could you specify a little more? What type of refreshing are you looking
for? Describe your application.

You have a couple of options here:

1) Use client-side scripting to dynamically change information on the page
without refreshing a page.

2) Refresh the entire page and ensure that next page request brings
different data to the user.

:DG<
 
B

Bredal Jensen

Dimitri Glazkov said:
Jensen,

Could you specify a little more? What type of refreshing are you looking
for? Describe your application.

You have a couple of options here:

1) Use client-side scripting to dynamically change information on the page
without refreshing a page.

2) Refresh the entire page and ensure that next page request brings
different data to the user.

Well i'm trying to make show a list of text from a database.
Let s say i want to show tex0 in on the cotrol , for 5 minutes and text1 for
5 minutes
and so on.
The control is par t of a web page , but only text in on the control is self
refreshing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top