topical media & game development
mashup-amazon-08-08-02-YahooREST-Default.aspx / aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Yahoo Using REST</title>
</head>
<body>
<form id="form1" runat="server">
<h1>
Yahoo Web Search Using REST and the Repeater control</h1>
This page lets you search Yahoo's massive database of web content.<br />
<br />
Enter Keywords below and click Search<br />
<table>
<tr><td>Keywords: </td><td><input type=text value="Cream" name="Keywords" enableviewstate="true" id="txtKeywords" runat="server" /></td></tr>
<tr><td> </td><td>
<input type=submit runat=server id="Submit1" onserverclick="Submit1_ServerClick1" value="Search Yahoo"/></td></tr>
</table>
<br />
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="">
<HeaderTemplate>
<b />Yahoo Web Search Results</b><br /><hr />
</HeaderTemplate>
<ItemTemplate>
<b><%# DataBinder.Eval ( Container.DataItem, "Title" ) %></b><br />
<a href="<%# DataBinder.Eval ( Container.DataItem, "ClickUrl" ) %>"><%# DataBinder.Eval ( Container.DataItem, "Url" ) %></a><br />
<%# DataBinder.Eval ( Container.DataItem, "Summary" ) %>
</ItemTemplate>
<AlternatingItemTemplate>
<div style="background-color:AntiqueWhite">
<b><%# DataBinder.Eval ( Container.DataItem, "Title" ) %></b><br />
<a href="<%# DataBinder.Eval ( Container.DataItem, "ClickUrl" ) %>"><%# DataBinder.Eval ( Container.DataItem, "Url" ) %></a><br />
<%# DataBinder.Eval ( Container.DataItem, "Summary" ) %><br />
</div>
</AlternatingItemTemplate>
</asp:Repeater>
</form>
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.