There is a property called "OnClientClick" . Here you can specify a function that will check (I assume), or just run regular javascript.
If your data is invalid, you can simply return false; from the method. This should cancel your postback
The_butcher
source share