Hi, How to calling javascript client side function while clicking asp.net button control. If client side valid only means then only onclick event function called otherwise intimate to client error Give me code or any good link for this
Hi Sidharth, You can try below code for your prpose just add OnClientClick="javascript:yourfunctionname" for example: <asp:Button ID="btndel" runat="server" Text="Delete User" OnClientClick="return confirm( Are you sure you want to delete this Product? );" /> it will call javascript client side function while clicking asp.net button control. If client side fun ction return true then only onclick event function called otherwise nothing happens. I hope it will work for you.