title: Updating TextBox Inner Text without refreshing the page
body: <p>I'm developing a platform with some friends as a project for a university subject. We're trying to make an IRC using ASP.NET but we're facing a problem right now.</p>
  
  <p>We have this textbox:</p>
  
  <pre><code>&lt;asp:TextBox ID="txtLog" runat="server" TextMode="MultiLine" AutoPostBack="True"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>And then we have in the code-behind a function who checks if you're still connected to our server, and if you are it reads the stream that is coming from him and append it to the TextBox.</p>
  
  <pre><code>txtLog.Text += string.Format(strReceptor.ReadLine() + "\r\n");
  </code></pre>
  
  <p>The thing is, the property Text of this TextBox is updated but in the page it is not displayed. How can we update the Text inside the TextBox on the webpage without refreshing the page? We don't want to refresh the page because if we do we lose the connection to the server.</p>
  
  <p>We know that we can use JavaScript to update it but we weren't sucessful doing it. We tried a function but it was only called once.</p>
  
  <p>The function who updates the Text property it's inside a cycle which is running on a new Thread, so that it keeps checking if something comes out of the server, and if it does append it to the TextBox.</p>
  
  <p>Thanks in advance!</p>