Populating Country List Boxes
In a thread discussed earlier, http://discuss.fogcreek.com/joelonsoftware/default.asp?cmd=show&ixPost=79339&ixReplies=66 , Tony asked how sites identify the country you're from... I didn't see a satisfactory reply, so I did a bit of research and found this cool little country list box populater written for ASP.NET by Paul Ingles on codeproject:
Why do I have the feeling there is a Perl module to do this as of 3 years ago?
You could lookup against zz.countries.nerd.dk. It's a standard DNS query, no special GeoIP API required. Easy to do from C#.
Fog Creek Home