ClientOnClick and OnClick
-
Guys, is it possible to use both ClientOnCLick and OnClick on a button? ClientOnClick will call a javascript function to validate, and if it returns true, then the Onclick delegate should be fired! thanks
Estarta
-
Guys, is it possible to use both ClientOnCLick and OnClick on a button? ClientOnClick will call a javascript function to validate, and if it returns true, then the Onclick delegate should be fired! thanks
Estarta
Yes, that's exactly how it works, I believe.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Yes, that's exactly how it works, I believe.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
thanks for the reply, just one thought, the server side delegate will never be fired if the validation part 'Client side validation' was false is that true?
Estarta
-
thanks for the reply, just one thought, the server side delegate will never be fired if the validation part 'Client side validation' was false is that true?
Estarta
Correct, because postback will not occur.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )