<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Path="~/Inc/jQuery/jquery.js" />
<asp:ScriptReference Path="~/MicrosoftAjaxTemplates.debug.js" />
</Scripts>
</asp:ScriptManager>
<script type="text/javascript">
$(function() {
var dv = $create(Sys.UI.DataView, {}, {}, {}, $get("tbTemplate"));
var people = [
{ Id: "A01", Name: "Jeffrey Lee",
Score: 32767, RecTime: new Date() },
{ Id: "A02", Name: "Fox Mulder",
Score: 6242.25,
RecTime: Date.parseInvariant("2008-11-05 12:00:50",
"yyyy-MM-dd HH:mm:ss") },
{ Id: "A03", Name: "Dana Scully",
Score: 8391.66, RecTime: new Date(2008, 6, 15) }
];
dv.set_data(people);
$("#tbTemplate").show();
});
</script>
<table border="1" cellspacing="0" cellpadding="0"
style="font-size: 9pt; width: 300px;">
<thead>
<tr><th>Id</th><th>Name</th><th>Score</th><th>Record Time</th></tr>
</thead>
<tbody id="tbTemplate" style="display:none; padding: 3px;">
<tr>
<td style="text-align: center;">{{Id}}</td>
<td>{{Name}}</td>
<td style="text-align: right;">{{Score.format("N2")}}</td>
<td style="text-align: center;">
{{RecTime.format("yyyy/MM/dd HH:mm:ss")}}</td>
</tr>
</tbody>
</table>