How can I show the time on my website? (I want the label to be updated every second).
I tried using an AJAX update panel with the label inside, but I must be doing something wrong b/c it's just not updating!!!
Please help!!! it's urgent!!
Thanks alot
RakrusPosted Dec 20, 2007, 1:06 AM
Hi Kaila,
The usage will depends on the contex,in think case you don't need to go for ajax pannel
kailaPosted Dec 18, 2007, 10:11 AM
thanks!
what is the point of the ajax update panel anyways?
Kumar DuvvarapuPosted Dec 14, 2007, 5:44 AM
Hi,
You have to use javascript to display the time in your website,
thanks and regards,
kumar
RakrusPosted Dec 14, 2007, 5:37 AM
Hi,
onbodyload write this
function BodyLoad(){
window.setInterval(
function(){
dt=
new Date();document.all[
"Label1"].innerText=dt;}, 1000);
}
Thanks
Rakesh