Question:
What are the differences between OnClick, OnServerClick and OnClientClick?
Answer:
System.Web.UI.HtmlControls (HTML controls such as img, input button, etc.) have OnClick and OnServerClick events whereas System.Web.UI.WebControls (web controls such as asp:LinkButton, asp:Button, etc.) have OnClick and OnClientClick events.


OnClientClick has been available since 2.0. It replaces the following code:
