javascript alert incorporating with asp code-behind
I have a function in an asp.net page that will delete a record from a database. I need to have a message pop up to confirm deletion. I have searched google and everywhere for about 2 hours now, hoping to find something.
It looks like everyone is saying i need javascript or vbscript to pop open the alert. However i'm unable to figure out how i can have a button on my asp.net page have the onClick event equal a javascript and then have the "OK" on the javascript popup call the asp.net function for deletion.
Does anyone know how i can do this?