In 2.0 Button control has a property OnClientClick which is used to call a client side function before postback.
<asp:Button ID='Button1' runat='server' Text='Button' OnClientClick='ClientFunction()'/>
<script>
functionClientFunction()
{
alert('ClientFunctionCalled');
}
</script>
Share with