title: Compiler Error Message: CS0103: The name 'Test1' does not exist in the current context
body: <p>I am completely new to programming in ASP.NET and do not understand why the error "Compiler Error Message: CS0103: The name 'Test1' does not exist in the current context" occurs on this basic piece of code.</p>
  
  <p>Below is the code that I am trying to compile - </p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  
  &lt;head runat="server"&gt;
  &lt;title&gt;Untitled Page&lt;/title&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;div&gt;
  
  &lt;asp:Label ID="Test1"/&gt;&lt;/asp&gt;
  
  &lt;script runat="server"&gt;
   protected void Page_Load(object sender, EventArgs e)
  {
  Test1.Text = "Hello World; the time is now" + DateTime.Now.ToString();
  }
  &lt;/script&gt;
  
  &lt;/div&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Any assistance on why I'm receiving this error message would be greatly appreciated.</p>