Click here to Skip to main content
15,905,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<pre lang="vb">I would like to display a confirmation box using OnClientClick before calling a sub using onclick. The confirmation box is successfully displayed using OnClientClick but the sub is not called using onclick. How do I use OnClientClick and onclick together? Or is there a better way to do this? Thank you.

&lt;asp:imagebutton id=&quot;ImageButtonSubmit&quot; runat=&quot;server&quot; ImageURL=&quot;images/delete.jpg&quot; onclick=&quot;submit_button&quot; OnClientClick=&quot;return confirm(&#39;Are you sure you want to delete the messages?&#39;);&quot; &gt;&lt;/asp:imagebutton&gt;</pre>
Posted
Comments
J.Karthick 5-Jul-11 6:54am    
Post your code...then only i can help you

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900