title: ASP textbox calls javascript function
body: <p>I have a search textbox in asp. And I want it to send request to the server each time the text is changed there. I have a javascript function which sends request but it is not being called each time when I type something in the text box. How can I call javascript function from ASP textbox?</p>
  
  <p>That is my textbox:</p>
  
  <pre><code>&lt;asp:TextBox ID="search" name="Search" runat="server" onchange="javascript:text_changed();"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>That is my js function:</p>
  
  <pre><code>function text_changed() {
       searchedword = document.getElementById("ContentPlaceHolder1_search").value;
       SendRequest();
  }
  </code></pre>