ASP.net user control doesn't call a javascript function
<p>I am developing asp.net web application, I have a repeater that call a registered user control, I have in the user control a button that I want to call a javascript function that make Ajax call to do some action on server. this button doesn't call the javascript method, I don't know why? and when I view source I found the javascript function is repeated for every item in the repeater, how to eliminate this repetition specially that I read server items inside the function, and why the function is not called?</p>

<p>Thanks a lot!</p>

<pre><code>sercontrol.ascx 

&lt;div id="divBtnEvent" runat="server"&gt; 
   &lt;input type="button" id="btnAddEvent" class="ok-green" onclick="saveEvent();" /&gt; 
&lt;/div&gt; 

&lt;script type="text/javascript"&gt; 
    function saveEvent() 
    { 
           var eventText = document.getElementById('&lt;%=txtEventDescription.ClientID%&gt;').value; 
           // make ajax call 
     } 
</code></pre>
