E:\web\learnaspcom\htdocs\freebook\learn\ubtoc.xml LearnAsp.com - ASP ASP.net Free Lessons
Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll
<Asp.net blog>
<personal site>
xxx

Utility Belt: wsAmazonMarketplaceSearch
by Charles Carroll

"Utility Belt" can grab the same XML one grabs from Amazon webservices. Here is an example of a wbeservices call.

   filename=/experiments/utilitybelt/vercurrent/ubdemo_wsAmazonMarketplaceSearch.aspx

<Test Script Below>


<%@ debug="true" %>
<%@ Assembly src="utilitybelt.vb" %>
<script language="VB" runat="server">
    dim ub1 as new LearnASP.UtilityBelt()
Sub Page_Load(S As Object, E As EventArgs)
     ub1.Options("cache-on")
    ub1.intcacheminutes = 10

    Dim ht1 As New Hashtable()
    ht1.Add("AsinSearch", "B00005JKDR")
    ht1.Add("offer", "Used")
    ht1.Add("type", "lite")
    litAmazon.Text &= "<br><br><hr>US Marketplace Search<br><br>" & Server.HtmlEncode(ub1.wsAmazonMarketplaceSearch(ht1))
End Sub
</script>
<html><head>
<title></title>
</head>
<body bgcolor="#FFFFFF">
<PRE>
<asp:literal id="litAmazon" EnableviewState="false" runat="server" />
</PRE>
<form runat="server">
</form>
</body></html>
There are many worthy charities!!. But perhaps help starving children in Africa or South America AND help Charles too. a $5 tip buys him lunch at McDonalds, a $20 tip buys his kid Hitoshi a new computer game, a $39 tip buys his daughter Michiko a few nice outfits. See our donor list.