'txtName' is not declared. It may be inaccessible due to its protection level
<p>After putting a textbox on my page when I compile it I get the above error:</p>

<p>'txtName' is not declared. It may be inaccessible due to its protection level.</p>

<p>This is happening when I try to read the value of the textbox in the codebehind page.</p>

<p>I'm not sure what's causing this...any ideas?</p>

<p>In the aspx file I have:</p>

<pre><code>&lt;%@ Page Language="VB" AutoEventWireup="false" CodeFile="signup.aspx.vb" Inherits="signup" %&gt;
</code></pre>

<p>In the codebehind aspx.vb file I have:</p>

<pre><code>Imports System.Data.SqlClient
Partial Class signup
    Inherits System.Web.UI.Page

    Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click 
</code></pre>
