title: Using onChange Event in ASP.NET combined with Bootstrap
body: <p>I wanna create two textareas.
  The first textarea should used by the user.
  Every time the user will change the textarea value it should be checked
  and given out in another textarea.
  I tried to add <code>runat="server"</code> and <code>onChange="fTextChanged"</code> in the bootrstrap
  textarea control.
  This is my usercontrol:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="row"&gt;
   &lt;div class="form-group"&gt;
    &lt;label for="ToTranslate"&gt;Text to translate:&lt;/label&gt;
    &lt;textarea class="form-control" runat="server" onChange="fTextChanged" rows="5" id="ToTranslate"&gt;&lt;/textarea&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="row"&gt;
   &lt;div class="form-group"&gt;
    &lt;label for="TranslatedText"&gt;Translated text:&lt;/label&gt;
    &lt;textarea class="form-control" runat="server" rows="5" id="TranslatedText"&gt;&lt;/textarea&gt;
   &lt;/div&gt; 
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>And this is my CodeBehind:</p>
  
  <pre><code>public void fTextChanged(object sender, EventArgs e)
  {
      string Content = ToTranslate.Value;
      TranslatedText.Value = Content;
  }
  </code></pre>
  
  <p>I tried to debug it, but it appears that the compiler(Website?) ignore the function.
  My VS2017 dont stop at the breakpoint:</p>
  
  <pre><code>Content = ToTranslate.Value;
  </code></pre>
  
  <p>I'm new in the web programming at all, I'm just used to C#, C++, and LabView.
  I hope you nice guys can help me.</p>
  
  <p>Kind regards!</p>
  
  <p><strong>EDIT:</strong><br/>
  Changing:</p>
  
  <pre><code>&lt;textarea class="form-control" runat="server" onChange="fTextChanged" rows="5" id="ToTranslate"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>&lt;asp:TextBox class="form-control" ID="ToTranslate" runat="server" OnTextChanged="fTextChanged" AutoPostBack="true" TextMode="MultiLine" Rows="5"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>Worked pretty well.</p>