Saturday, May 20, 2006 11:37 PM
jcmaslan
Queue-up the DJ with ASP.NET 2.0 Control for Amazon Web Service
We had guests queue up their favorite dance music for our DJ in advance of a party we hosted last month. The party site used this ASP.NET 2.0 control to call the Amazon E-Commerce Web Service to search for music and bind the selected items to a database table recording everyone's selections.
It's a hack to put a static database schema in the control, and you'll have to bind to your own MusicTableAdapter ; but here's the source for the control if you want to use it for something similar. It's based on the Amazon code sample.
Add the control to your page with a line like:
<uc1:AmazonItemSearchControl ID="AmazonItemSearchControl1" SubscriptionID="YOURIDHERE" runat="server" EnableTheming="true" />
The yellow "music cart" that floats on the right was styled with:
#musicCart
{
z-index: 2;
position: absolute;
right:1cm;
top:3cm;
background-color:Yellow;
width: 7cm;
padding: 10px;
border: red 2px dashed;
}