473,396 Members | 1,923 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

databind format social security number

I cannot find anything on how to format a social security number in the
databinding property of a text box. Everything in the drop down is
preformatted like {0:D} or {0:C}. I cannot find any examples. I just want to
take a 9 digit number and put the hyphens in.

I have this: 987654321 and want to show this: 987-65-4321 using the
Bind("SSN", ?????????) property.

Here's one thing I tried but it didn't work:

<%# Bind(&quot;SSN&quot;, &quot;{0:'###-##-####'}&quot;) %>

I'd appreciate someone showing me exactly what I need to use instead of the
above to make this work.

Keith
Mar 19 '08 #1
0 1275

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Geoff Cox | last post by:
Hello, I wonder if anyone has any ideas on this? I am using prototype-1.3.1.js and formmail-nms.cgi to send some data and find that the format of the data received by Outlook 2000 is...
2
by: Kif | last post by:
Hello! I´m looking for a macro that helps me to check out social security numbers in a form. I want the macro to check that the written number got the full length and so on. If you know how to...
1
by: Kif | last post by:
Hello! Thanks for the previous help! Now, I have found the SSN-mask, but I need some help scripting it to controll the numbers. That you cant write month 13 for example or day 39 in a month, and...
6
by: Sami | last post by:
Problem: Social Security number being used in a database. First problem is that it will not permit numbers beginning in zero to be entered - it sees it as a null or empty space from what I can...
1
by: gus1339 | last post by:
I have a social security field and I want to format it so the user MUST type 11 numbers (no less than 11). Thanks in advance!
4
by: Peter Ammon | last post by:
Does anyone ever write the arguments to printf()-like functions under the corresponding format specifier? printf("My name is %s and I am %u years old\n", name, age); If the arguments...
4
by: Morys Kenworthy | last post by:
How do I format my textboxes to show something like: $500,000.00 08/16/2004 548-55-4486 Is there a way to do this in ASP.NET? I have some textboxes on a web page (not in a grid) and I would...
0
by: jimp | last post by:
Does anyone know of a web service that the Social Security Adminstration has published, or anyone else, that can compute an individual's projected Social Security benefit at a specified retirement...
3
by: andersond | last post by:
I have some textboxes for items like phone number, social security number, zipcode, etc. in which the data will always be in a certain format. Is there a way for me to pre-format what goes into a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.