Use of OnClick For Server control: If this is set in asp:Control, it fires server side method on click of the control, normally it submits the form on the server.
For HTML element: If this is set in HTML element, it fires client side JavaScript function on click of the element, it may or may not submit the form, simply fires a JavaScript function.
Use of OnClientClick OnClientClick is only used to specify the function name that fires at client on the click of the server control. If asp:Control has both OnClick and OnClientClick specified, first onClientClick is called that calls JavaScript function and then OnClick (server side) method is called.
Use of OnSubmit It is an event of <form> element that fires when submit button of the form is clicked (input type="submit"), it fires client side JavaScript function.
Hope this helps.
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Rasagna, if this helps please login to Mark As Answer. | Alert Moderator