<tip author="Anthony Baratta" subject="Padding Numbers with leading Zeros
in ASP">
I used to run numbers I wanted to pad through a function that checked to
see if the number was less than 9 or 99, and padded with leading zeros
accordingly. The other day I stumbled across a more simple and straight
forward way. (Believe it or not it was at the Microsoft MSDN site.)
bbuttons way will work the best. There are otherways of handeling the problem, but you should be checking your string and formatting it anyways, so best to handle the problem before inserting.