-
May 1st, 2006, 12:50 AM
#1
Thread Starter
Hyperactive Member
Masking a String?
I am using a gridview and I want to mask the string that comes in as a phone number such as (###) ###-#### . If I have a numeric value I can format it using standard numeric formatting as follows:
<asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Sales", "{0:c}") %>'></asp:TextBox>
If there a similar formatting function for formatting strings?
Thanks in advance
-
May 2nd, 2006, 02:36 AM
#2
Junior Member
Re: Masking a String?
why not just convert string phone number to a double and you can freely format it using String.Format
it might not be a good solution, but it works.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|