468,103 Members | 1,316 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

Self refreshing user control/custom control.

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
Nov 19 '05 #1
5 3237
Jensen Bredal wrote:
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
Nov 19 '05 #2
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<

"Jensen Bredal" <je***********@yahoo.dk> wrote in message
news:eA**************@TK2MSFTNGP10.phx.gbl...
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

Nov 19 '05 #3
Hi,

Have you tried xml http?
http://www.codeproject.com/jscript/refreshpartweb.asp
http://www.15seconds.com/Issue/000612.htm

HTH,
Rakesh Rajan

"Jensen Bredal" wrote:
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

Nov 19 '05 #4

"Dimitri Glazkov" <di*************@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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.


Nov 19 '05 #5
> Have you tried xml http?
http://www.codeproject.com/jscript/refreshpartweb.asp
http://www.15seconds.com/Issue/000612.htm

HTH,
Rakesh Rajan


This sound interresting, i 'll have a look at it.
Many thanks

JB
Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by BBM | last post: by
reply views Thread by Do | last post: by
6 posts views Thread by MattB | last post: by
10 posts views Thread by Nathan Sokalski | last post: by
1 post views Thread by Harlan Messinger | last post: by
4 posts views Thread by =?Utf-8?B?UmljaEI=?= | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.