Code behind does not recognize my control variable on its aspx page
<p>I have apsx page that has the following simple code:</p>

<pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Team.master" AutoEventWireup="True" Inherits="Lib.team" Codebehind="team.aspx.cs" %&gt;


&lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"&gt;


    &lt;asp:GridView ID="GridView1" runat="server"&gt;
    &lt;/asp:GridView&gt;

&lt;/asp:Content&gt;
</code></pre>

<p>My Behind code is as follow:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;


namespace Lib
{
  public partial class team : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
    {
        SqlDataReader reader = DBData.ExecuteQuery("SELECT * FROM tblTeam");
        GridView1. //This is where the error is
    }
  }
}
</code></pre>

<p>My problem is I can't seem to get the behind code to recognize the control variable GridView1.  I am using a web application in VS2010 and below is my project tree:</p>

<p><img src="http://i.stack.imgur.com/RGeRa.png" alt="enter image description here"></p>

<p>I think it is something very simple that I missed.  I tried to recheck my namespace, my inherit clause, recompile the project.  Any help or guidance would be greatly appreciated.</p>

<p>Thanks</p>
