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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -