Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying short date format in GridView
Message
De
07/10/2010 17:26:32
 
 
À
07/10/2010 14:56:05
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01484208
Message ID:
01484419
Vues:
26
>>>>Hi,
>>>>
>>>>I am trying to display just the date part of a datetime field in a gridview, but the time is always displayed. Can anybody see anything wrong with this?
>>>>
>>>>
<ItemTemplate>
>>>>     <mm:mmLabel ID="lblDOB" runat="server" DisplayFormat="{0:d}" CssClass="date" Text='< %# Bind("DateOfBirth") % >'></mm:mmLabel>
>>>></ItemTemplate>
>>>
>>>Frank, see if there is an HtmlEncode property for the column. You will need to set that to false.
>>>Tim
>>
>>Tim, can you give me an example? I'm not seeing any reference to htmlencode in the aspx page. It's not showing up in intellisense, but I'm not sure I've tried in the right places.
>
>Hi Frank,
>
>I see you got a solution to work but just for the record. I don't know how, but I didn't notice you were using a label. I had it stuck in my head this was a grid column. Sorry for the misdirection.
>Tim

No probs Tim.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform