bopritchard
Programmer
this is my label control
the data for phonenumber is 7044561237
but it keeps getting rendered to the page as 7044561237
why is the string.format not formatting?
Code:
<asp:label Runat=server text='<%# string.format("{0:(###) ###-####}", Container.DataItem("phonenumber"))%>' ID="lblPhoneNumber"></asp:label>
the data for phonenumber is 7044561237
but it keeps getting rendered to the page as 7044561237
why is the string.format not formatting?