Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime format in GridView.
Message
From
17/09/2006 21:34:48
 
 
To
17/09/2006 21:10:08
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2000 Pro
Database:
MS SQL Server
Miscellaneous
Thread ID:
01154521
Message ID:
01154524
Views:
8
Hi all, I have a column with Datetime data type in a GridView, the DataFormatString is set as {0:d}, however the Time portion stil appears in the cell, any idea? Thanks.

Hi, Liew,

There's an HTMLEncode property that you need to set for the column. I believe the default value is TRUE, but you need to set it to false.

HTMLEncode is there to prevent malicious cross-site scripting.

Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform