【发布时间】:2014-09-09 13:52:09
【问题描述】:
我想在 Gridview 中使用这个 jQuery Countdown 插件:http://keith-wood.name/countdown.html!每行都有一个从数据库绑定的 DeadLine 时间,我不知道如何绑定这些日期!看看这段代码:
<script>
$(function () {
var austDay = new Date();
austDay = new Date(2014, 8, 10); // the count down date !
$('#defaultCountdown').countdown({until: austDay});
});
</script>
<div id="defaultCountdown"></div> // count down will be shown here !
它是我的网格视图
<asp:GridView ID="GroupExsGridView" Width="100%"
BorderWidth="0" runat="server">
<Columns>
<asp:TemplateField>
<ItemStyle BorderWidth="0" />
<ItemTemplate >
<div class="alert alert-info" role="alert">
<asp:Label CssClass="h5" ID="Exsddeadline" runat="server" Text='<%# Bind("GDeadLine") %>'></asp:Label><br /><br />
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
【问题讨论】:
标签: c# javascript jquery asp.net gridview