javascript - how to refresh the asp.net Label every second automatically using Java script instead ajax? -


how refresh asp.net label every second automatically using java script instead ajax?

ajax javascript in combination webrequest, if don't want use ajax javascript data has come somewhere else...

put @ end of page , replace label1 name of label nice working digital clock:

<script type="text/javascript"> function updatelabel(){     document.getelementbyid('<%= label1.clientid %>').innerhtml = new date();      // replace new date() updated value     settimeout("updatelabel()",1000); } updatelabel(); </script> 

Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -