F
Fred Sawtelle
Okay, I've wasted a day researching and experimenting
with no success. Would someone tell me why the code
below doesn't format properly, and how I can get it to,
please? This is in the ItemTemplate of a repeater, and
it displays the bound data just fine, except that it
displays as 3334445555, just as it's stored in the
database. I want it to display as (333) 444-5555.
<%# DataBinder.Eval(Container.DataItem, "VoicePhone", "{0:
(###) ###-####}") %>
I have the same situation with a label control on a
different webform: the value displays, but not formatted.
<%# DataBinder.Eval(DsDetails1, "Tables
[DepartmentDetails_get].DefaultView.[0].VoicePhone", "{0:
(###) ###-####}") %>
with no success. Would someone tell me why the code
below doesn't format properly, and how I can get it to,
please? This is in the ItemTemplate of a repeater, and
it displays the bound data just fine, except that it
displays as 3334445555, just as it's stored in the
database. I want it to display as (333) 444-5555.
<%# DataBinder.Eval(Container.DataItem, "VoicePhone", "{0:
(###) ###-####}") %>
I have the same situation with a label control on a
different webform: the value displays, but not formatted.
<%# DataBinder.Eval(DsDetails1, "Tables
[DepartmentDetails_get].DefaultView.[0].VoicePhone", "{0:
(###) ###-####}") %>