title: generate onclick event in image control in asp.net
body: <p>i am have one datalist in asp.net</p>
  
  <p>i m using vb with asp</p>
  
  <p>now my code is just as follow</p>
  
  <pre><code>&lt;table border="0" cellpadding="0" cellspacing="0" &gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;tr&gt;
  
      &lt;br /&gt;
  
     &lt;td&gt;
  
     Question Number:
  
          &lt;asp:Label ID="Label3" runat="server" Text='&lt;%# Eval("Question_no") %&gt;' /&gt;
  
          &lt;br /&gt;
  
     Cust_id:
  
          &lt;asp:Label ID="Cust_idLabel" runat="server" Text='&lt;%# Eval("Cust_id") %&gt;' /&gt;
  
          &lt;br /&gt;
  
          Question:
  
          &lt;asp:Label ID="Label1" runat="server" Text='&lt;%# Eval("Question") %&gt;' /&gt;
  
          &lt;br /&gt;
  
          Time:
  
          &lt;asp:Label ID="Label2" runat="server" Text='&lt;%# Eval("Date_time") %&gt;' /&gt;
  
          &lt;asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/ImagesFolde/Chrysanthemum.jpg" Height="50" Width="50" **OnClientClick="s()"**/&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <p></p>
  
  <p></p>
  
  <p></p>
  
  <p>all this in datalist as you can see</p>
  
  <p><strong>so it will be repeated..</strong></p>
  
  <p>i have put one image in it </p>
  
  <p>now i want call a method when any image will be clicked</p>
  
  <p>i make one sub called <strong>s() in vb</strong></p>
  
  <p>i want to call it </p>
  
  <p>i use on <strong>clientclick() event</strong> but doesn't work </p>
  
  <p>what to do?</p>