tDetail.EmployeeSSN = Format("" & !EmployeeSocialSecurity, "000000000")
I did it this way and showed it to the lead programmer and he said to research it and do it another way.
tDetail.EmployeeSSN = string.Format("" + item["EmployeeSocialSecurity"].ToString(), "000000000");
I am relatively new to C# and some .NET. I researched this and I do not know what he means!
Thanks ahead of time,
aar
Sam HobbsPosted Jun 3, 2011, 7:00 PM
VulpesPosted Jun 3, 2011, 11:11 AM
However, for something like a SSN, I'd have thought you would want leading zeros to be displayed.
EDIT
For some unknown reason the last two posts weren't showing before I posted!
Dorababu MekaPosted Jun 3, 2011, 10:33 AM
A RepaskyPosted Jun 3, 2011, 10:31 AM
Dorababu MekaPosted Jun 3, 2011, 10:08 AM