|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataFormatString DateThis should be really simple however i just can't figure it out. I am using a GridView to display hours results from a database. Now the date field in the database is formated as a short date (Access) mm/dd/yyyy however when ever it is displayed back on the page it is displayed as MM/dd/yyyy hh:mm:ss Now this is my code for the boundfield. Any Quick Pointers? <asp:BoundField DataField="Date" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Date" SortExpression="Date"> <ItemStyle HorizontalAlign="Center" /> <HeaderStyle HorizontalAlign="Center" /> </asp:BoundField> Thanks In Advance Nico hello nico
you have to add htmlencode=false http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/BoundFieldClassHtmlEncode.aspx
Javascript alert message problem
HTML can't find Caption property for datagrid Compiler Error Message: BC30456: 'btnGAT_onClick' is not a member of 'ASP.WebForm1_aspx' Confirm Message in gridview Object data source, setting parameter source to Page.Partner.Guid Paging In GridView bound to DataSet Calendar Web Control Search in .NET User controls and LoadControl method RowCommand Event of a nested Gridview |
|||||||||||||||||||||||