Hey,
The best way to get a girls number is to give off a good first impression: be yourself when you approach her and don't be a wanker because that will just send her in the other direction :P
If you know from the first minute or so that she isn't interested, then back off.. As they say there...