America/US Samples
Europe Samples
Asia Samples

Yahoo Search

This is an example of how you can embed Ajax Searching capabilities into your own applications using Gaia Ajax. Here we're using the Yahoo API, but there's really nothing stopping you from using your own or another Search Engine like e.g. Google.



Markup (ASPX/.aspx)

   1:   
   2:  <gaia:ExtendedPanel 
   3:      id="search"
   4:      Height="400px" 
   5:      Visible="true"
   6:      Caption="Search using Yahoo"
   7:      runat="server">
   8:   
   9:      <div style="margin:15px;">
  10:          <table>
  11:              <tr>
  12:                  <td style="width:60px;">
  13:                      Search:
  14:                  </td>
  15:                  <td style="width:120px;">
  16:                      <gaia:DropDownList runat="server" ID="siteSelect">
  17:                          <Items>
  18:                              <asp:ListItem Value="gaiaSite">gaiaware.net</asp:ListItem>
  19:                              <asp:ListItem Value="world">The World</asp:ListItem>
  20:                          </Items>
  21:                      </gaia:DropDownList>
  22:                  </td>
  23:                  <td style="width:60px;">
  24:                      Query:</td>
  25:                  <td style="width:160px;">
  26:                      <gaia:TextBox runat="server" ID="query" /></td>
  27:                  <td>
  28:                      <gaia:ExtendedButton runat="server" ID="submit" OnClick="submit_Click"
  29:                          Text="Submit" />
  30:                          </td>
  31:              </tr>
  32:          </table>
  33:      </div>
  34:      <gaia:GridView ID="zResults" runat="server" AutoGenerateColumns="false">
  35:          <Columns>
  36:              <gaia:BoundField DataField="Title" />
  37:          </Columns>
  38:      </gaia:GridView>
  39:  </gaia:ExtendedPanel>
  40:   
  41: