databind format social security number

K

Keith G Hicks

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top