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

Self refreshing user control/custom control.

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

"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

P: n/a
> 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.