title: compilation error-vb.net not a member error
body: <p>i am trying to write some code behind a webpage to send an email onClick of a button.</p>
  
  <p>i have a text box</p>
  
  <pre><code>&lt;asp:TextBox ID="txtSecEmail" runat="server" Width="189px" 
  ontextchanged="txtSecEmail_TextChanged"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>i also have a button after that</p>
  
  <pre><code>&lt;asp:Button ID="btnUploadFiles" runat="server" Text="Upload Files"      
      Command="Command"
   CommandArgument="CommandArgument"
   runat="server" onclick="btnUploadFiles_Click"  /&gt;
  </code></pre>
  
  <p>when i try to load the page i get this error</p>
  
  <p>Compilation Error
  Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.</p>
  
  <p>Compiler Error Message: BC30456: 'txtSecEmail_TextChanged' is not a member of 'ASP.datauploaddatafiles_aspx'.</p>
  
  <pre><code>Source Error:
  
  
  Line 94:             &lt;td&gt;
  Line 95:                 &amp;nbsp;&amp;nbsp; EMAIL ADDRESS:
  Line 96:                 &lt;asp:TextBox ID="txtSecEmail" runat="server" Width="189px" 
  Line 97:                     ontextchanged="txtSecEmail_TextChanged"&gt;&lt;/asp:TextBox&gt;
  Line 98:             &lt;/td&gt;
  </code></pre>
  
  <p>Source File: Y:\Prog\NET\web\ClientCenterNew\datauploaddatafiles.aspx    Line: 96</p>
  
  <p>i dont understand how it is not a member? and why its saying this?</p>