(ASP.net) Preventing postback on dialog button click

(ASP.net) Preventing postback on dialog button click


Hi guys,
I'm newish to JQuery and having a problem using the dialog with
asp.net.
I've had to change the dialog.js file so that it attaches the dialog
to the aspnetform instead of the body so i can get the postback values
from asp.net gridviews. Now i'm having a problem when clicking on a
button on a simple message dialog that simply closes the dialog down
and it's causing a postback (because the button is within the server
form)
Normally I get around this problem in javascript by simply doing a
"event.returnValue = false;" to prevent button postbacks but I can't
seem to attach this to the button loaded into the dialog.
I don't suppose anyone reading this can point me in the right
direction please?
Cheers,
Knoxy