Juls,
Don't worry about whether somethings seems straight forward or not; we're here to help each other so everything is kosher!
Alright, so where were we? Oh yes, about your user being deleted anyways...Well, what we're trying to do is prevent the form from being submitted to the server so that the code in the server that deletes the user won't have a chance to run. This is accomplished by returning false from a javascript function that runs on, say, the click event of a control. You're saying, though, that the postback succeeds regardless of what value is returned from the javascript function, so that puzzles me a bit and leaves me thingking of two possible causes for the problem:
1 - The javascript function is not really returning false so the postback succeeds all the time. To check if this is true, I would update the javascript function so that it (temporarily) only returns false regardless of what the user responds to the "Are you sure..." question. If this doesn't delete the user, it means we have to look more closely at the javascript function itself and make sure it returns the correct value (true/false).
OR
2 - The datagrid is firing its DataGridCommand event regardless and it's ignoring the value returned by the javascript function. I haven't tried stoping a postback triggered by the "onclick" of a datagrid but I don't see why it would be any different from any of the other controls. In any case, try the following: Add a dummy button to your page; bind its "onclick" property to the ConfirmDel javascript function, and try the delete operation from the button, not from the grid. On the server code-behind, add the deleting logic to the button as well, and then try deleting the user. If the delete is attempted from the button and answering "Cancel" to the "Are you sure..." question stops the postback, it means we need another way to cancel the postback because returning false from the javascript is not doing it for the datagrid. I'm unaware of any other way to stop the postback, but we'll see what se come up with.
JC
Friends are angels who lift us to our feet when our wings have trouble remembering how to fly...