Thank's! That a little bit on the way.. i don't get it all, though.
firstly, i call a function,
OnClientClick="javascript:
At the end of val() i put a return true if validation is OK. I put a alert there to ensure that's work fine.
The doStepOne code isn't fire after that.
If i take return true like your sample, the doStepOne is firing, but it ignores the val().
Same effect if I use OnClientClick="javascript:
Main Topics
Browse All Topics





by: abelPosted on 2009-08-06 at 08:54:29ID: 25034870
They work well together, but only if you "return true" in your javascript handler. If the javascript code raises an error or returns false, the OnClick will not be called. I.e., this works:
with this in the code behind and both get called (clientclick and click):
{
// do something here
}