javascript - how to refresh the Label which is inside the Grid view using Java script? -


i displaying time in label inside grid view. need refresh label every second. how java script.like ajax timer.

edit:

onload="settimeout(window.location.reload();. 1000);" whats wrong code or <asp:label id="label2" width="100px" runat="server" onload="settimeout(window.location.reload();. 1000);" font-size="12px" forecolor="black" text='<%# bind("time") %>'></asp:label>

setinterval(function(){   var = new date();   $('#yourspanid').text(now.toutcstring()); // or whatever formatting need }, 1000); 

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 -