title: Getting text out of textarea from a ASP.NET GridView update
body: <p>i'm loosing my mind. Using ASP.NET in a GridView, amongst other controls, I have the following:</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Intention"&gt;
      &lt;EditItemTemplate&gt;
          &lt;asp:TextBox ID="IntentionInfo" Enabled="true" TextMode="MultiLine" Wrap="true" runat="server" /&gt;
      &lt;/EditItemTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:TextBox ID="IntentionInfo" Enabled="false" TextMode="MultiLine" runat="server" /&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>I would like to take the value out of this textarea and save in a database. However, server side, I try to pull the value out, like such:</p>
  
  <pre><code>string txt = (TextBox)DonationResultsTable.Rows[e.RowIndex].Cells[6].Controls[1].Text;
  </code></pre>
  
  <p>... but I keep getting the value that was SENT to the Client. </p>
  
  <p>I wrote this javascript and I can see the values change in the DOM, but still the server keeps taking the old value.</p>
  
  <pre><code>$("textarea").change(function()
  {
      var txt = $(this).val();
  
      $(this).html(txt).text(txt);
  });
  </code></pre>
  
  <p>So my guess was ViewState, but I disabled it for those controls, like this:</p>
  
  <pre><code>&lt;asp:TextBox ID="IntentionInfo" ViewStateMode="Disabled" Enabled="false" TextMode="MultiLine" runat="server" /&gt;
  </code></pre>
  
  <p>Still nothing! Any ideas?</p>