string - Pad a number with starting zero in .Net -


I need all one digit number pad with start zero. Can someone recommend a best method? (Pre 1 -> 01, 2 -> 02, etc.)

I will call numbers, whose Below are two digits required, providing:

  int number = 1; String Pad number = number. Toaster ("00");  

Comments