title: How do I reference the input of an HTML <textarea> control in codebehind?
body: <p>I'm using a textarea control to allow the user to input text and then place that text into the body of an e-mail. In the code behind, what is the syntax for referencing the users input? I thought I could just use <code>message.Body = test123.Text;</code> but this is not recognized.</p>
  
  <p>HTML:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;textarea id="TextArea1" cols="20" rows="2" &gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>CodeBehind: </p>
  
  <pre class="lang-c# prettyprint-override"><code>foreach (string recipient in recipients)
  {         
    var message = new System.Net.Mail.MailMessage("sender@example.com", recipient);
    message.Subject = "Hello World!";         
    message.Body = test123.Text;                
    client.Send(message); 
  } 
  </code></pre>