473,418 Members | 2,052 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,418 software developers and data experts.

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 3468
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: DevilZAngel | last post by:
Hi all I am writing a simple chat application in asp.net. Problem is that, when other user sends a message, I want my testbox (which shows the messages) to refresh automatically, without using...
1
by: LRD | last post by:
Form not refreshing after autopostback unless keyboard or mouse move Hi, We created several new ASP.NET C# forms for our intranet. In each form we use panels for different sections of the...
10
by: BBM | last post by:
Hi, I have been developing with C# User Controls and occasionally have a problem where I "lose" a control from the design surface of the User Control. The controls that I am using to build my...
0
by: Do | last post by:
Hi, I have a datagrid in a custom user control that must be refreshed after I click a button. My custom user control is named dtgDocuments. I can't find any kind of reload method for the...
6
by: MattB | last post by:
I have a page header that I made as a user control (ascx) that I drop on every page in my application. The application is an eCommerce application and I have a total for items in the cart on the...
10
by: Nathan Sokalski | last post by:
One thing that I have often needed to do that I have been unable to find a way to do is refresh the page (basically do the same thing as pressing the browser's Refresh button). I know how to do...
4
by: Umut Tezduyar | last post by:
I want to use my custom control (.cs) in my web application. Custom control is in the same assembly as my application. I want to know the name of the assembly (.dll) file so i can add it's...
1
by: Harlan Messinger | last post by:
If I have a dropdown list ddl, and the following code appears in Page_Load, then on each postback the rows previously added persist and I wind up with more and more copies of the same rows. To...
4
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.