The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
3. Create a user control called AmazonItemLookUp.ascx and use the code below:
4. Create a class called Amazon in your App_Code folder and insert the code below:
5. Upload the User Control to Sitefinity
6. Inside the text box, insert the ASIN number of the product
7. Click on the link "Buy this Product" ,that appears below, and give it to your customer as shown below:
How it Works
Using a long query string, Amazon returns a large XML file with many attributes for the item. Here is a sample:
To view your URL, place a break point on this code in Amazon.cs:
In the URL, you'll notice many properties in the query string and here is an explanation of a few of them:
Operation - This defines what you're seeking to do. In this case, I want to look up a single product. You can also look up a list of products based on other identifying information, like a search index or a tag. Amazon also has many other operations and for more info, please read this article.
Response Groups - These pull certain item attributes into the XML file. If attributes were removed from your query string in response groups, you'd notice that data would be missing in the XML file. For more info on response groups, please read this article.
View all posts from The Progress Team on the Progress blog. Connect with us about all things application development and deployment, data integration and digital business.
Subscribe to get all the news, info and tutorials you need to build better business apps and sites
Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.