wills

wills

  • NA
  • 2
  • 0

string format

Apr 26 2006 11:23 AM

How does one format a phone number so it renders like:

(000) 000-0000

<asp:FormView id="formview1" DataSourceID="SqlDataSource1" runat="server" DataKeyNames="EFxID">
  <ItemTemplate>
      Cell Phone:
        <asp:Label id="lblCellPhone" runat="server" Text='<%# Bind("ECellPhone")%>' />
  </ItemTemplate>
</asp:FormView>