In Asp.net, the order of onclientclick and onclick is: the client's onclientclick is executed first, and the server's onclick is executed later.
Extended: After the onclientclick event of the client is executed, you can determine whether the onclick event on the server can be executed by returning the value.
That is, if true is returned in the foreground method corresponding to onclientclick, the method corresponding to onclick on the server can continue to be executed;
If false is returned in the foreground method corresponding to onclientclick, the method corresponding to onclick on the server side will be truncated and will not continue to be executed.
This feature can be used for client verification. If the client verification is successful, the server processing method is continued. If the client verification fails, an error message is displayed.