l33*_*tn4 1 sql sql-server asp.net
我在aspx中创建一个转发器,只是简单地从SQL Server显示一个表.
随着时间的推移,日期又回来了,我认为SQL是正常的.但是如何在aspx中将值降低到大小?我可以在text属性中更改字符串,还是需要在其他位置更改?对不起,我是一个aspx noob.
Date
---------------------
8/14/2013 12:00:00 AM
8/13/2013 12:00:00 AM
8/11/2013 12:00:00 AM
8/10/2013 12:00:00 AM
8/9/2013 12:00:00 AM
Run Code Online (Sandbox Code Playgroud)
码:
<asp:Repeater runat="server" ID="TestRepeater">
<HeaderTemplate>
<tr>
<Table>
<th>Date</th>
<th>Customer</th>
<th>Location</th>
<th>Select</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<th><asp:Label runat="server" ID="L1" Text='<%# Eval("Date")%>' ></asp:Label></th>
<th><asp:Label runat="server" ID="L2" Text='<%# Eval("Customer")%>' ></asp:Label></th>
<th><asp:Label runat="server" ID="L3" Text='<%# Eval("Location")%>' ></asp:Label></th>
<th><asp:button runat="server" ID="button1" Text="See Ticket" BorderStyle="Groove" BackColor="Silver" /></th>
</tr>
</ItemTemplate>
<FooterTemplate>
</Table>
</FooterTemplate>
</asp:Repeater>
Run Code Online (Sandbox Code Playgroud)