MY CODE >> ASP BBYOpen Store Search
<!-- Tommy Martin -->
<!-- December 2013 -->
<!-- This is a basic ASPX webpage that creates a form to get data from a user. -->

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" 
    AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="XML_Testing._Default" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>.</h1>
            </hgroup>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <h3>Smart Homes</h3>

    <!-- Get user Data -->
    <FormView id="form1" runat="server">

        Enter your Zip: 
        <asp:TextBox ID="zip" runat="server" />
        <asp:RangeValidator id="zipCheck"
           ControlToValidate="zip"
           MinimumValue="10000"
           MaximumValue="99999"
           Type="Integer"
           EnableClientScript="false"
           Text="Please enter a valid Zip code."
           runat="server"/>
        <br />

        Enter search Radius: 
        <asp:TextBox ID="dist" runat="server" />
        <asp:CompareValidator ID="checkDist" 
            ControlToValidate="dist" 
            runat="server" 
            Operator="DataTypeCheck" 
            Type="Integer" 
            ErrorMessage="Distance must be a whole number." />
        <br />

        <asp:Button ID="submit" runat="server" Text="Search" OnClick="searchStores"/>
        <br />
        <br />

    </FormView>

    <!-- Display XML -->
    <asp:Label ID="checker" runat="server" Text=" "></asp:Label>
    <asp:Label ID="nodeCount" runat="server" Text=" "></asp:Label> <br />
    <asp:Label ID="output" runat="server" Text=" "></asp:Label><br /><br />
    
</asp:Content>
// Tommy Martin
// December 2013
// This is an ASPX.CS file that is used when needed.  This file make a query on
// the Best Buy Open Server based on the data collected from the form and
// receives XML in return.  The XML is then rendered and display in a user
// friendly format.  Both ASP and C# are also used to check for user errors
// and give feedback if an error occurs.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;

namespace XML_Testing
{
    public partial class _Default : Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {

            
            
        }

        protected void searchStores(object sender, EventArgs e)
        {

            if (zip.Text == "" || dist.Text == "")
            {
                output.Text = "";
                nodeCount.Text = "";
                checker.Text = "Please enter a zip and distance.";
            }
            else
            {
                try
                {
                    checker.Text = "";
                    output.Text = "";
                    // Creating XML Document
                    XmlDocument xdoc = new XmlDocument();
                    xdoc.Load("http://api.remix.bestbuy.com/v1/stores
                        (area(" + zip.Text + "," + dist.Text + "))
                        ?show=storeId,name,distance,lat,lng&apiKey=fuzgmrj4nv8v9ummatn78m3k");

                    // Creating a list of nodes
                    XmlNodeList xNodelst = xdoc.SelectNodes("stores/store");
                    nodeCount.Text = Convert.ToString(xNodelst.Count) + 
                        " stores were found. <br/>";

                    // Testing that there is something there
                    if (xNodelst == null)
                    {
                        output.Text = "Nothing there...";
                    }
                    else
                    {
                        foreach (XmlNode node in xNodelst)
                        {
                            output.Text += "<b>Store ID: </b>" + 
                                node.SelectSingleNode("storeId").InnerText + "<br/>";
                            output.Text += "<b>Name: </b>" + 
                                node.SelectSingleNode("name").InnerText + "<br/>";
                            output.Text += "<b>Distance: </b>" + 
                                node.SelectSingleNode("distance").InnerText + "<br/>";
                            output.Text += "<b>Latitude: </b>" + 
                                node.SelectSingleNode("lat").InnerText + "<br/>";
                            output.Text += "<b>Longitude: </b>" + 
                                node.SelectSingleNode("lng").InnerText + "<br/>";
                            output.Text += "<br/>";
                        }
                    }
                }
                catch (Exception ex)
                {
                    output.Text = "Please enter a valid Zip Code.";
                }
            }
        }
    }
}