Hello.
I'm trying to use an asp - not html - button without having a postback or a
screen refresh. I've tried turning off "CausesValidation" and
"UseSubmitBehavior" and I still get a screen refresh - which makes me think
I'm doing a postback. I've also tried "return false" in both the onclick
and OnClientClick events. No Luch. Can I use the onclick or OnClientClick
(or something else) to fire a javascritpt function and then stop?
Thanks.
Matthew Wells
Matthew.Wells@FirstByte.net
Matthew Wells - 01 Mar 2008 20:34 GMT
I found the answer myself. Make sure UseSubmitBehavior" is True. Do NOT
use OnClick as that requires a server postback. Use OnClientClick and make
sure to return 'false'. It does not have to be in a response to a "confirm"
box, just "return false;". You can do anything in between that doesn't
cause a postback.
> Hello.
>
[quoted text clipped - 10 lines]
> Matthew Wells
> Matthew.Wells@FirstByte.net