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
(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
>.
>
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
>.
>
<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
>.
>