> If I already have an onclick - server event, how do I Intercept before I
> post back?
Larry's already answered that... You add a client-side onclick event and
capture the return value - if it's false, the postback won't happen...
> or how do I intercept the OnSelectedIndexChanged event in JavaScript. Is
> it called something else for the ListBox on the client side?
An <asp:ListBox> webcontrol gets rendered as an HTML <select> - you need the
onchange event...
> Does the Client script event handler get executed then the server event
> handler after the post?
Yes, unless the client-side event returns false...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Lit - 30 Jul 2007 23:07 GMT
Mark,
"onchange" is what I was looking for.
Thanks for the help
Lit.
>> If I already have an onclick - server event, how do I Intercept before I
>> post back?
[quoted text clipped - 12 lines]
>
> Yes, unless the client-side event returns false...