Quick google search revealed this:

Code:
int i = 100;
string str = Convert.ToString(i, base); //base = 2, 8,10 or 16
You'll obviously want to use base 2 for binary.