title: load text into textarea from code behind in asp.net using C#
body: <p>I've one asp.net page and I want to load text into the textArea control which is in aspx page from into a variable in code behind (C#):</p>
  
  <p>Code behind:</p>
  
  <pre><code>System.Web.UI.HtmlControls.HtmlTextArea Output1 = 
      (System.Web.UI.HtmlControls.HtmlTextArea)(FindControl("textarea1"));       
  Output1.Value = Output.ToString();
  </code></pre>
  
  <p>ASP:</p>
  
  <pre><code>&lt;div style ="width: 78%; float: right; height: 85px; display: block;" 
      class="message_text_box_left"&gt;
  
      &lt;textarea id="textarea1" name="textarea1" cols="30" rows="3" 
          class="message_text_box" title="Share your Idias here..." 
          tabindex="1" onkeyup="addrow_fun();"&gt;&lt;/textarea&gt;                        
  &lt;/div&gt;  
  </code></pre>
  
  <p>but it is giving error like</p>
  
  <blockquote>
    <p>Object reference not set to an instance of an object.</p>
  </blockquote>