# Dumb little update to the Amazon book control...now it knows where you live!

<datetime class="hidden">2004-07-03T00:00</datetime>
<!-- category -- mostlylucidcouk, Imported -->

I've been using [Scott W.s](http://scottwater.com/blog/) little [Amazon](http://www.amazon..co.uk/) [book control](http://scottwater.com/blog/articles/BookControl.aspx) on this site for a while now - and it's pretty damn good, haven't made any cash from it as yet...but...well, it always bugged me that it was .com only as written - so if you were in the UK, by default it directed you to [Amazon.com](http://www.amazon.com/). The version of this control on my site of course directs you to [Amazon.co.uk](http://www.amazon.co.uk/) - not much use if you're not in the UK. What I have now done is incorporate the "[Extreme Optimized IP to Country Lookup](http://www.codeproject.com/csharp/iplookupoptimise.asp)" stuff on [Codeproject](http://www.codeproject.com/) into this control so the little control now detects a few (umm, 6 at the moment) countries and directs you to the correct (hopefully!) site for your country - try it out, let me know if it works for you (slight issue of my being in the UK only :-)). I'm trying to hack together an independet control using this, I'll put this up for download from this article as soon as I can (currently lives in a single 'ExtraControls' namespace with my View tracking module,a web service and a whole lot of other gubbins...)