Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET: OnClientClick

Tags:

asp.net

What's the point of the OnClientClick attribute for an ASP.NET control? Doesn't it simply generate an onclick attribute for the HTML element?

like image 282
JamesBrownIsDead Avatar asked Dec 17 '25 23:12

JamesBrownIsDead


1 Answers

Yes, it does just generate the client-side onclick attribute.

It is there to distinguish it from OnClick attribute, which generates the server-side click event.

like image 192
Jamiec Avatar answered Dec 20 '25 13:12

Jamiec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!