Q:

how can i call a function in a onclick method of image button in asp.net

I have to call a function to send some data in onclick method
   <div class="yildiz"><asp:ImageButton ID=Imageid runat="server" Height="19px" 
                            ImageUrl="~/images/yildiz.png" onclick= "<%= someFunction('das') %>" Width="20px" 
                            style="position: relative; top: 13px; left:6px; float:left; "   /></div>

A:

Use OnClientClick, like so:
<asp:ImageButton
   ID=Imageid runat="server"
   Height="19px"
   ImageUrl="~/images/yildiz.png"
   OnClientClick="someFunction('das')"
   Width="20px"
   style="position: relative; top: 13px; left:6px; float:left; "
/>

