Reactions to story from Blogs - ASP.NET Weblogs
ISBN-13 to ISBN-10
http://weblogs.asp.net/ fmarguerie/ archive/ 2007/ 12/ 23/ isbn-13-to-isbn-10.aspx
If for some reason you need to convert an ISBN-13 to ISBN-10 (one being that Amazon doesn't support ISBN-13 in product affiliate links) then you need not only to remove the first three characters. You also need to recompute the checksum. Here is a piece of code that I wrote to handle this conversion: public static String Isbn13to10(String isbn13) { if (String.IsNullOrEmpty(isbn13)) throw new ArgumentNullException("isbn13"); isbn13 = isbn13.Replace("-", "").Replace(" ", ""); if (isbn13.Length != 13) throw new ArgumentException("The ISBN doesn't contain 13 characters.", "isbn13");
More rising blog posts
-
Entertainment »
Motion Pro II Racing Simulator -
Business »
LEGO Indiana Jones: The Original Adventures Demo -
Lifestyle »
Three Gorges Youth Hostel -
Politics »
Conyers: Were closing in on Rove. Someones got to kick his ass -
Sports »
The Countdown: AZ Sports Worst Attitudes -
Technology »
Linux gets security black eye
More rising news stories
-
Entertainment »
Husband Calls Shania Twain Split 'Unfortunate' -
Business »
GE Makes It Official on Appliances -
Lifestyle »
Calif. wine patriarch Robert Mondavi dead at 94 -
Politics »
Saudis Rebuff Bush on Oil -
Sports »
Grievance filed over collapse of Torrealba's talks with Mets -
Technology »
Can OpenOffice 3.0 finally replace MS Office?
Recent posts from Blogs - ASP.NET Weblogs
-
Solving LINQ's N-Tier Issues
9 days ago -
Wanna win an XBox!
9 days ago -
Le livre Professional ASP.NET 3.5 (seulement $16 sur Amazon.com pour une courte durée)
9 days ago