Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is this possible in ASP.NET?

0 views
Skip to first unread message

david

unread,
Jun 5, 2002, 1:58:26 PM6/5/02
to
Hi,

I have a aspx page show data from a database. I have a
button on the page and when use click on the button the
last record in the table will be shown in the textbox on
the page. The database is connected with another
application so the last record always change (due new
record added)

The button approach work fine. Say when user click on the
button I will see the latest last record in the database.

Now I was wondering can I implement a "Auto refresh", say
for every 5 seconds the page will automatclly update
without asking user to click on the button.

I tried use a timer on the page, the event fire but the
content on the page never changed.

Thanks for your help!

David

Robert Davis

unread,
Jun 5, 2002, 2:05:20 PM6/5/02
to
<meta http-equiv="Refresh" content="5; url=default.aspx;FORMAT=HTML">

(5 is the number of seconds)
(replace the "default.aspx" with the page name you want refreshed)

Regards,

rad...@cox-internet.com
Let me do you a dotFavor! >>> http://radbase.ehostingbiz.com/webcenter
The BEST dotNet hosting available anywhere!!!
____________________________________________________________________


"david" <davi...@centrilift.com> wrote in message
news:bcad01c20cba$9757cfc0$3bef2ecf@TKMSFTNGXA10...

Mark

unread,
Jun 5, 2002, 2:19:45 PM6/5/02
to
Have you tried to use javascript to ".click" the button?

Mark

>.
>

Gareth

unread,
Jun 5, 2002, 2:51:32 PM6/5/02
to
shir...@ntlworld.com

"david" <davi...@centrilift.com> wrote in message
news:bcad01c20cba$9757cfc0$3bef2ecf@TKMSFTNGXA10...

david

unread,
Jun 5, 2002, 3:35:15 PM6/5/02
to
Mark,

Thanks for reply

I am not very good at Jscript. I read some of the post
here to say you have to do some client side program to do
thing like this.

When you said us JS to click the button, do you mean to
have a timer in JS, then use the timer event to trig the
button event in ASPX PAGE? If yes, can you show me an
exampple on how to do this?

Thanks

David

>.
>

Mark

unread,
Jun 6, 2002, 3:28:36 PM6/6/02
to
I'm not good with javascript either, and I'm brand-
spanking new to ASPX. Here is a bit of what I'm talking
about:

<body onload="window.opener.document.EmpSearch.Action
[2].click()"
onunload="window.opener.document.EmpSearch.Action[2].click
()">

Maybe you can use the idea. This particular bit refreshes
the page that opened it. I add or change something on
this page, and it is reflected on the other page. I
imagine you could hook a timer to it.

Mark

>.
>

0 new messages