title: Name does not exist in the current context ASP.NET
body: <p>I was trying to bind a value from an input type text to the gridview but I keep having errors "CS0103: The name 'dateborrowedTextBox' does not exist in the current context"</p>
  
  <pre><code>Date borrowed:
              &lt;%--&lt;asp:TextBox ID="dateborrowedTextBox" runat="server" 
                  Text='&lt;%# Bind("dateborrowed") %&gt;' /&gt;--%&gt;
  
              &lt;%--date picker --%&gt;
              &lt;input type="text" runat="server" value='&lt;%# Bind("dateborrowed") %&gt;' name="dateborrowedTextBox" readonly="readonly" id="dateborrowedTextBox" /&gt; 
              &lt;a href="#" onclick="cdp1.showCalendar(this, '&lt;%= dateborrowed.ClientID %&gt;'); return false;"&gt;Date Picker&lt;/a&gt;       
              &lt;br /&gt;
  </code></pre>
  
  <p>So how can I declare it inside my date picker?</p>
  
  <p>Help would be much appreciated. Thanks in advance.</p>