我在网格视图内的标签中显示时间。我需要每秒刷新标签。如何通过Java脚本来做到这一点。就像Ajax计时器一样。
编辑:
OnLoad="setTimeout(window.location.reload();.1000);"
此代码或
i am displaying time in the label which is inside the grid view. i need to Refresh the label every second. how to do this by Java script.Like Ajax timer.
EDIT:
OnLoad="setTimeout(window.location.reload();. 1000);"
whats wrong with this 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>
发布评论
评论(1)