From: roberta on 10 May 2010 08:40 I've a grid view with a column that shows a DateTime value <asp:TemplateField HeaderText="Data"> <ItemTemplate> <asp:Label ID="lblData" runat="server" Text='<%# Eval("Data") %>'></asp:Label> </ItemTemplate> <ItemStyle Width="70px"></ItemStyle> </asp:TemplateField> I would like to show only date (not time) but using templatefield and not BoundField solution Thanks
From: Mark Rae [MVP] on 10 May 2010 13:51 "roberta" <roby(a)tis.it> wrote in message news:OqVwt5D8KHA.1888(a)TK2MSFTNGP05.phx.gbl... > I would like to show only date (not time) but using templatefield and not > BoundField solution http://www.codedigest.com/Articles/ASPNET/137_How_to_format_DateTime_in_GridView_BoundColumn_and_TemplateColumn.aspx -- Mark Rae ASP.NET MVP http://www.markrae.net
|
Pages: 1 Prev: css question Next: Unable to login to membership database |