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
Post a Comment