title: call server-side method from javascript in postback
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3713/call-asp-net-function-from-javascript">Call ASP.NET Function From Javascript?</a>  </p>
  </blockquote>
  
  
  
  <p>In my custom ajax server-side control I draw image (using html5) and I need to invoke server-side function when user click it (just do it usual button).I want to do it like this:</p>
  
  <pre><code>    &lt;xx:MyControl ... runat="server" onchange = "server side function"/&gt;
  </code></pre>
  
  <p>I dont want just invoke do_postback function with ControlId an EventArgument parametrs beckause then I must do additional work to specify the action and invoke appopriate function - I want to keep my code-behind clear and I dont want end user that will use my component do this work.</p>