Hi, this morning i spent 2 hours searching how can i do a dynamic clock in the master age: here is the solution: You have to put a update panel inside of this you have to put a Timer control and you now have a refresh automatically event you only have to put
a label inside and in the page_load you put this: Label1.Text = DateTime.Now.ToShortDateString() +" "+DateTime.Now.ToShortTimeString(); this is the easiest way to do this.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Member
29 Points
80 Posts
How to do a dynamic Date and hour on master page
Jun 20, 2008 09:48 AM|javito|LINK
Contributor
2910 Points
867 Posts
Re: How to do a dynamic Date and hour on master page
Jun 20, 2008 09:55 AM|DotNetAdvisor|LINK
How about using javascript so you can avoid the postbacks?
www.dotnetadvisor.com
Contributor
2910 Points
867 Posts
Re: How to do a dynamic Date and hour on master page
Jun 22, 2008 09:55 PM|DotNetAdvisor|LINK
Did this help you out?
www.dotnetadvisor.com