Hi,
The following will prevent the postback:
[C#]
button1.Attributes["onclick"] = "javascript
:SomeFunction();return false;";
[VB]
button1.Attributes("onclick") = "javascript
:SomeFunction();return false;"
The client-side function specified will get executed and there will be no
postback.
Greetings
Martin
"Urs Vogel" <uv****@msn.com> wrote in message
news:#n**************@TK2MSFTNGP09.phx.gbl...
Hi
Is there a way to prevent an ASP-Button from performing a PostBack? I'ld
rather have a script controlling this behaviour.
Thanks, Urs